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
0 answers

How can i change the color of the Value text for a QProgressDialog / QProgressBar?

I'm looking to change the colour of the Value text from default black to white. I've got a stylesheet, but the color: white only seems to apply to the text, not the value text. ''' Load UI ''' if __name__ == "__main__": app =…
Adam Sirrelle
  • 357
  • 8
  • 18
1
vote
0 answers

How to link PySide progress bar to a script execution

I have a script which copies files from one folder to another. During the execution, i wish to rize a progress bar window and show the percentage of execution. The progress bar window code is (UI itself made in QT Designer): class Progress(QWidget,…
kiryha
  • 183
  • 1
  • 2
  • 14
1
vote
2 answers

QProgressBar connect progress between classes - "no matching function for call"

I have some troubles in correct set of Signal and Slots between one class in which I do some calculations and the other one which contain GUI with my progress bar. I have very small experience with qt so I don't feel well how the signal/slots works.…
Karls
  • 731
  • 7
  • 17
1
vote
1 answer

Qt - How to combine QtConcurrent and QThreadPool for a QProgressBar?

In the mainwindow.ui I created a QProgressBar named progressBar and a QPushButton named speckle which starts the heavy computation. Inside the mainwindow.h I have an appropriate private slot for the button and a private function which represents the…
goulashsoup
  • 2,639
  • 2
  • 34
  • 60
1
vote
1 answer

Paint ticks on custom QProgressBar in Pyside

I'm trying to paint some ticks in my custom progressbar but I'm not clear on why the line isn't showing up at all? import sys import…
JokerMartini
  • 5,674
  • 9
  • 83
  • 193
1
vote
1 answer

Make QProgress bar snap in increments of 5 Pyside

I have created a custom progress bar which allows users to click and drag to choose their desired percent value. I was wondering how can I make it snap in increments of 5? Ideally I'll make this a property the user can set when using the…
JokerMartini
  • 5,674
  • 9
  • 83
  • 193
1
vote
1 answer

implement a progress dialog by QDialog

I'm using QT to implement some UI program. In this program I need a progress dialog. I tried to use the build-in QProgressDialog, it works fine but in my case I need to confirm (with another dialog) when the "cancel button" is clicked. In…
Claire Huang
  • 961
  • 1
  • 18
  • 30
1
vote
1 answer

Python3, PyQt5: QProgressBar updating makes actual task very slow

I am using Python 3.5, PyQt5 on OSX and I was wondering if there was a possibility to update the QProgressBar without slowing down the whole computing work. Here was my code and if I did just the task without the progressbar update it was soo much…
sunwarr10r
  • 4,420
  • 8
  • 54
  • 109
1
vote
1 answer

QProgressBar in new window don't work

I'm creating the new window with QProgressBar when i click on button of MainWindow but when new window is creating, QProgressBar don't appear while filling cycle is working. After then QProgressBar appear and it is…
1
vote
2 answers

How to turn QLineEdit background into a Progress Bar

The code creates a single dialog with QLineEdit and a QPushButton. When the button is clicked I would like the QLineEdit to turn into a progress bar that would show a progress of the process triggered with the push of the button. When the process is…
alphanumeric
  • 17,967
  • 64
  • 244
  • 392
1
vote
1 answer

Is there circular QProgressbar with range (0,0) in qt?

I want to have circular QProgressbar which it's appearance must look like the normal QProgressbar with the Range between 0 and 0. The code for the linear QProgressbar is some thing like below: QProgressBar *_progressBar = new…
s.m
  • 209
  • 2
  • 7
  • 17
1
vote
3 answers

how to implement QProgressBar for heavy computation?

I am developing a GUI in QT which performs some heavy computation based on user input . I doing all the computation in a function say start_computation() , as start_computation() function is called my GUI hangs since it is busy in executing…
Abhishek
  • 139
  • 2
  • 13
1
vote
1 answer

QProgressBar update in QThread quitting crashes

I have the following code that works as expected. It updates the progress bar value in each for loop. The only issue I have is when I'm done and call emit ProcessUserRowsFinished() in the method OnProcessUserRowsStarted the program crashes. class…
adviner
  • 3,295
  • 10
  • 35
  • 64
1
vote
1 answer

QProgressDialog: How to adjust the size of the dialog to fit its contents?

I test with code below: QProgressDialog* dialog = new QProgressDialog("Message", "Close", 0, 10); dialog->setWindowTitle("Long Long Long Long Title"); dialog->setCancelButtonText("Long Long Long Click this button to…
ldlchina
  • 927
  • 2
  • 12
  • 31
1
vote
1 answer

QProgressBar text format as time

I was wondering either there is any easy way of displaying current and maximum value of QProgressBar as seconds in HH:mm:ss format. Currently my format is %v/%m, is there a way to show it as time?
Łukasz Przeniosło
  • 2,725
  • 5
  • 38
  • 74