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
3
votes
1 answer

How to update Progressbar in PyQT through QThread which calls another function

I am quite new to PyQT. I am learning how to make a Progressbar and update it as my algorithm progresses. I have been able to make a Basic Progressbar that updates itself using this link: Python pyqt pulsing progress bar with multithreading The…
Sakib Khan
  • 305
  • 2
  • 13
3
votes
1 answer

Add a progress Bar to a method in PyQt5

I have a simple PyQt5 app here to convert from Pdf to excel. I wanted to add a progress bar to the method convert below when I click the button to convert as it takes sometime to execute,hence it will be great to have some visualization. Here is my…
Kartikeya Sharma
  • 1,335
  • 1
  • 10
  • 22
3
votes
3 answers

Does pyqt support a stacked progress bar with two values?

Similar to this question, but for pyqt. I have an application that has two threads, one of which processes some data (time consuming), and the second thread that presents the results and asks for verification on the results. I want to show the…
Endyd
  • 1,249
  • 6
  • 12
3
votes
1 answer

Customizing QProgressBar

I have a diary program in which user can create tasks and then add breaks to them. Each Task object has a QTime start_time, QTime end_time and vector of Breaks. Each Break has a QTime start_time and QTime end_time members, just like a Task. I want…
Chechen Itza
  • 111
  • 8
3
votes
1 answer

How to create Progress bar in Qt4?

I tried to create a progress bar using below sequence of code, but showed me an error, which is incomplete type is not allowed . The code snippet is as follows:- QProgressBar *bar; bar= new QProgressBar(0);//error: incomplete type is not allowed…
Myanju
  • 1,135
  • 1
  • 11
  • 23
3
votes
1 answer

How to link a QProgressBar to a Terminal process percentage?

So I designed a very simple dialog using Qt which is meant to download videos from youtube and convert them to either mp4 or mp3, everything using youtube-dl command (I use system() to call youtube-dl). Yes, I'm a Linux user. It's working fine, but…
Michael
  • 1,018
  • 4
  • 14
  • 30
2
votes
1 answer

Is there an easy way to customize a QProgressBar?

I would like to have a QProgressBar that ends with a dot ( that has a bigger width than the width of the line ). What do I have to override, or what property/attribute would I have to set to achieve this effect ? EDIT : here is a pic of how I would…
Geo
  • 93,257
  • 117
  • 344
  • 520
2
votes
1 answer

PyQt5: start, stop and pause a thread with progress updates

I’ve got some issues with threading in my program. I have a main program and also a GUI-Class, created with PyQt. I’ve created a small example of my problems. When I start the python script and press start, the progress bar is working fine, but I…
2
votes
1 answer

Vertical QtProgressBar with rounded edges and dynamic gradient setting not properly shown - C++

I'm trying to build a progressbar like this: The problem is that when the value is below a certain percentage, it is shown this way: Now, I know this is a known bug of the application of stylesheets and the only way to escape this is subclassing…
VSkynet96
  • 43
  • 4
2
votes
1 answer

Change the value of the progress bar from a class other than my GUI class PyQt4

I have a GUI class created by Qt designer in which i have a progress bar, and another class in which all the number crunching is done during which i want my progress bar to update regularly. The way i thought i would do this it to do something like…
Ben
  • 5,525
  • 8
  • 42
  • 66
2
votes
1 answer

Add a Widget (QProgressbar) as a childItem within a QTreeView

I made a model that adds data to a QTreeView. I want to add a widget (eg: QProgressbar) as a child element to each row within that QTreeView. So that every time if we click on each row we can see the progressbar as a childItem for that…
2
votes
1 answer

How to repeating using Qthread with responsive progressbar

When using python pyqt, I made a Qprogressbar with an updating the number using Q thread. The code shown below is successful in first time, howerver it will crash with doing another run. This is for Python PyQt5, in Python 3.5 system. And I have try…
michael
  • 55
  • 6
2
votes
1 answer

Connect an imported function to Qt5 progress bar without dependencies

I'm writing a set of small python applications, that are aimed to be run via CLI. Some of the functions should be bundled together in a PyQT5 GUI to be easier usable. Now, I have one function inside my package, that tends to run quite long, so I…
Dschoni
  • 3,714
  • 6
  • 45
  • 80
2
votes
1 answer

Pop up a Widget containing a QProgressBar between two QWizardPages

I'm working on a GUI for creating and managing virtual environments for Python 3. For this I use Python 3.7.4 and PyQt5. I would like the Creation process of the virtual environment to be done by a wizard and by using the create() method of Python's…
Joey
  • 1,436
  • 2
  • 19
  • 33
2
votes
1 answer

How to center align a QPushButton when a QProgressBar is present?

I'm trying to put a QProgressBar below a QPushButton and align them on the center of a QVBoxLayout, but for some reason the button stays left aligned when the progress bar is present and center aligned if it is not. I tried setting the alignment of…
joaopaulopaiva
  • 363
  • 3
  • 16
1
2
3
10 11