Questions tagged [qprogressbar]

QProgressBar is a Qt class that provides a progress bar, which can be either horizontal or vertical.

The QProgressBar uses steps to show the progress. To use it, the minimum and maximum values should be specified. After that, when the progress bar receives a current step value, it will update itself to show the percentage of steps completed.

If both values are set to 0, the progress bar will turn into a "busy" indicator. An example of this is the following:

QProgressBar * b = new QProgressBar();
b->setMinimum(0);
b->setMaximum(0);
b->show();

Official documentation can be found here.

152 questions
0
votes
1 answer

Reset QProgressBar for another run

I have a ProgressBar for downloading data. Sometimes the task can timeout and if so I want to be able to restart the process. Task is started Timer is started if the timer finishes, end the task press the button to restart the task All of the…
johnashu
  • 2,167
  • 4
  • 19
  • 44
0
votes
0 answers

progress bar during time unkonwn process in pyqt4

I'm new to pyQt4 and i need to create GUI using pyQt4 and python 3.5. I have long process which does not have exact time duration to be executed. time duration is varying according to the inputs that I use in the process at each time. There are…
0
votes
0 answers

Python - pyqt5 progressBar visualization from start to end of a particular method execution

I want to setup a progressBar until end of the execution of a particular method. class MainWindow(QMainWindow, TeamInsight.Ui_MainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) …
Ishara Madhawa
  • 3,549
  • 5
  • 24
  • 42
0
votes
0 answers

PyQt Progressbar QThread not working when rendering a graph

I looked at this answer here which was very helpful, but it's not working as expected when trying to render a plot. The plot is working but the progress bar is not progressing, it will just jump to 100% after the plot is rendered. Of course, I would…
Joe T. Boka
  • 6,554
  • 6
  • 29
  • 48
0
votes
1 answer

QT: Connect QMediaPlayer to QProgressBar?

I want to connect the QProgressBar to the QMediaPlayer for Song Progress in QT5. How can i do that? Any help will be appreciated. Thanks.
Pascal3366
  • 91
  • 6
0
votes
3 answers

QProgressBar blocked by main Thread?

======================================================= QProgressBar* pbar = new QProgressBar(this); pbar->setMinimum(0); pbar->setMaximum(0); pbar->show(); for (int i = 0; i < 10000; i++) { qDebug() <<…
0
votes
1 answer

How to show status of file loading in QT

I am loading a csv file using QFileDialog and displaying it on a qtableview . This loading process takes a lot of time. How do I indicate to the user that he has to wait till the file is getting loaded using qstatusbar or qprogressbar?
annie
  • 143
  • 1
  • 1
  • 11
0
votes
1 answer

How to get a cylinder effect (2D) Progress Bar using Qt programming?

How to change the colors of the progressbar? Say 40% to red, 20% to green and 40% to yellow etc. I have tried using StyleSheets, but I found that it works only for Flat Progress Bars , not for the 2D bars.
Ques
  • 3
  • 3
0
votes
1 answer

QProgressbar shows also busy mode while percentage is showing?

QProgressBar works either as busy mode or percentage mode. But i want to show the both! In my application sometimes(not always) it takes too long time for just a 1 percent change. So i want to show some kind of busy indicator effect while showing…
kleinstein
  • 33
  • 3
0
votes
1 answer

QProgressBar and heavy task

I have heavy task. I created QProgressBar for displaying that programm still work and runned heavy task in another thread using c++ std::thread class. But QProgressBar don't work, only window with QProgressBar starts. Here is the code: QProgressBar…
user5636914
0
votes
2 answers

Change property of random element in QListWidget

I have 5 QProgressBars in a QListWidget (ui->listWidget). How can I access the third QProgressBar element and change its value ex. ( progressBar->setValue(40) ) MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new…
How to
  • 103
  • 1
  • 11
0
votes
1 answer

QProgressBar busy indicator

I want to show busy indicator using qprogressbar in my widget. I know about setting Minumum and Maximum to zero, but it makes small colored area moving from left to right and back. But I want just from left to right. Setting min and max to zero…
0
votes
1 answer

Qt Progressbar percentage issue

I want to display progressbar percentage when downloading a file. When file is downloaded i get 64%, not 100%. How to fix this issue? Thanks in advance. void Updates::UpdateProgress(qint64 bytesRead, qint64 totalBytes) { int totalSize =…
Cobra91151
  • 610
  • 4
  • 14
0
votes
1 answer

Fixed text inside or adjacent to QProgressBar with scaling font size in Qt

I am new with Qt (using Qt Creator) and the QProgressBar. I am interested in learning how to have a fixed text value (not the value of the progress bar) inside or adjacent to the left of a QProgressBar and have its font size scale according with…
user6167676
0
votes
1 answer

Color the Image setting on QProgressBar

Actually I set an image on a QProgressBar and want to change the color of image according to selected part of QProgressBar. I tried covering my image with QProgressBar color but that fills the image, but as my image is not a rectangle it color the…
prince
  • 1
  • 1