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
1
vote
1 answer

QProgressBar (Qt 5.4.0) produces black blank screen

I wanted to use a QProgressBar in the following function: void InstallingWindow::install_package(QString pkgname, QString tempdir){ qDebug() << "Imported tempdir is " + tempdir; QFile ee_script("/usr/bin/ee_script"); QString…
1
vote
1 answer

What is the proper way to do this using pyqt?

The code below gives an error msg: "QObject::startTimer: timers cannot be started from another thread." I dont really get the reason why. Mostly because i just nearly get this threading issue and signal and slot mechanism. How can i pass the…
Qfwfq
  • 185
  • 1
  • 7
1
vote
1 answer

Qprogressbar with two values

I have some unusual question : For visualization of packing progress i think about qprogressbar with two values in one bar - one showing bytes read, and another showing write-out bytes, which gives also imagine about compress ratio. It is possible…
1
vote
1 answer

adding QProgress bar within QLineEdit in PyQt or PySide

Hi I want to add the QProgressBar behind the QLIneEdit, just like it is in Safari Browser or IE, So here is my starting point how can I hook the ProgressBar and MyLineEdit together so that when user is done entering the path the progress bar should…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
1
vote
2 answers

Python PyQt Progress Bar Busy

I have found several questions that looks similar to this such as: Busy indication with PyQt progress bar Progress bar with pyqt Display installation progress in PyQt But most of the examples and answers were on 1 GUI thread and 1 data…
Chris Aung
  • 9,152
  • 33
  • 82
  • 127
1
vote
1 answer

Pyqt4 - QProgressBar how to indicate everytime while a function loops around processing data

It worked the first time but not again when the function that loops around processing data is re-called. I have 2 python programs. The main shows the progress bar and the second loops around processing data. I've researched all over stackoverflow…
1
vote
3 answers

What is the proper way to forward QProgressBar updates through classes in the logic layer?

I'm using a QProgressBar and have already figured out how to send the progress from a specific class in the logic layer with this procedure: setting up the connection in the view-layer class. creating the signal signal in the logic-layer…
Eli
  • 4,576
  • 1
  • 27
  • 39
1
vote
2 answers

unexplained delay after QProgressBar finish loading

I have emit signal from a loop (which make some calculations) that triggers progress bar update which located on the main GUI, after the loop ends the progress bar updated to 100% (the progress bar become hidden when the process ends), but than…
GoldenAxe
  • 838
  • 3
  • 9
  • 26
1
vote
1 answer

Indeterminate QProgressBar inside QListWidget

as stand in the OP title, is there any chance to get an indeterminate QProgressBar indide a QListWidget? bar = new QProgressBar(); bar->setMinimum(0); bar->setMaximum(0); QListWidgetItem *item = new QListWidgetItem ; …
Blackbelt
  • 156,034
  • 29
  • 297
  • 305
0
votes
1 answer

Changing QProgressBar background-color does not work

I'm creating a Qt widget application. In Qt Designer, my QProgressBar looks like this: I set different colors for background and chunk, but when I run my application, background-color doesn't show properly: I set the following…
0
votes
1 answer

Tree view with a progress bar delegate shows an extra line at the bottom

Whenever I add a progress bar delegate to my tree view, an extra line is shown in the UI under the QTreeView. #include #include #include #include class…
0
votes
0 answers

how to use progressBar and QThread to PyQt5?

When test_func1() or test_func2() is called, i want to increase the progressBar by the corresponding function for the number of iterations at the same time. For example, when test_func(10) is called, the progressBar is increased every time print(i)…
mateo
  • 89
  • 4
0
votes
0 answers

show progress QFutureWatcher connected to QProgressBar

I have a QFutureWatcher connected to a QProgressBar, the code is running but never show me the progress of the progressBar QProgressDialog progress; QFutureWatcher watcher; connect(&watcher, SIGNAL(finished()),&progress,…
0
votes
1 answer

Implement a simple QProgressbar PyQT5

i want to implement a QProgressbar for a function in my GUI. I thought the process is simple but it seems not to be. I thought i can implement the bar like this: 1- Button clicked 2- Progressbar and function start simultaneously 3- Function and…
thethe
  • 1
  • 2
0
votes
0 answers

QProgressBar stuck when QRunnable runs a loop function passed in

I have a calculating function that need to be sent to Qrunnable Worker as a parameter. Then, the calculating function runs with a 0-100 loop calculating in Worker's run function. The Problem is: the function is a separate loop function, I want to…
NorthBig
  • 47
  • 1
  • 9