Questions tagged [qprogressdialog]

Use this tag when you have a question about QProgressDialog, a Qt class which provides feedback on the progress of a slow operation.

The QProgressDialog is a Qt class that provides feedback on the progress of a slow operation.

In general, a progress dialog is used to give the user an indication of how long an operation is going to take.

Qt QProgressDialog Documentation

20 questions
3
votes
1 answer

Using QThread to display QProgressDialog in PyQt5

I am using PyQt5 to write an app that manages Sales Orders. When creating an Order or deleting itI want to display a marqee style progress dialog to indicate that the app is working. I have visited a lot of posts where the answer involved using…
ahendawy
  • 79
  • 7
2
votes
1 answer

How to wait for QProgressDialog construction?

Before long operation is executed, I'm invoking QProgressDialog to inform user about the progress of the execution. The long operations is waiting for thread to be terminated. The problem is, when I use show method of QProgressDialog, the progress…
kocica
  • 6,412
  • 2
  • 14
  • 35
2
votes
1 answer

Modal QProgressDialog updated from worker thread

I want to update a modal QProgressDialog from my worker thread. However, if I set the dialog to be modal, my application crashes (and the dialog did not show any progress). If I do not, everything goes fine (but the user can tinker around with the…
tcpie
  • 321
  • 1
  • 3
  • 17
1
vote
1 answer

How to move cancel button in QProgressDialog to the center?

I want to move the Cancel button of QProgressDialog to the center; by default its on the left. Below is a simple example, but I don't know how to change the button position. _progress = new QProgressDialog(); _progress->setWindowFlags(Qt::Dialog |…
Iris
  • 13
  • 3
1
vote
1 answer

How to intercept QProgressDialog cancel click

I have a standard QProgressDialog with a cancel button. If/When the user clicks the cancel button, I don't want the dialog to immediately hide, instead I would prefer to disable the cancel button and perform some clean-up work, and then close the…
Zachary Taylor
  • 153
  • 1
  • 11
1
vote
1 answer

QProgressDialog in Busy Mode Does Not Update

I have a simple loop where I'm performing an indeterminate-length operation. I set up a QProgressDialog with range(0,0) to trigger its indeterminate "busy" mode; on my platform, this normally produces a progress bar whose handle bounces back and…
SixDegrees
  • 781
  • 1
  • 8
  • 19
1
vote
1 answer

how to make a modal QProgressDialog in QT?

I am calling QProgressDialog from a thread and am unable to make it as a modal window even though I set the setModal to true. I want mainwindow to be blocked when QProgressDialog is in action. following is my piece of…
kaviarasan
  • 115
  • 2
  • 13
1
vote
2 answers

How to implement QProgressDialog?

I try to use a QProgressDialog to give the user some information on the progress of a long task, while allowing him to cancel this task. Basically, I have a QDialog with a button Compute. By clicking on it, a time consuming method is called on a…
Greg82
  • 1,000
  • 3
  • 10
  • 24
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
1 answer

PyQt QProgressDialog not reponding

I am new in programming in PyQt (python interface), I like to use QProgressDialog, to show the progress of some tasks, so, the problem is, I had this: while the change the value of progress , thank you for the help def setupUi(self, MainWindow): …
1
vote
1 answer

QProgressDialog only shows after long-running code is finished

I have a program designed according to the MVC model. My view has an open button where I can open files. The files are parsed and a lot of calculation is done with the file contents. Now I want to display a loader to indicate that the user should…
miile7
  • 2,547
  • 3
  • 23
  • 38
0
votes
1 answer

error while using QProgressbar PyQt5 python

i have the following code in which I implemented a QprogressDialog it works fine the first time I press the Start button to run the create function but if the dialog finishes and I try to run it again it shows an empty bar that does not increases…
0
votes
0 answers

QProgressDialog object AttributeError: 'ProgressBar' object has no attribute 'wasCanceled'

I am trying to DRY up a PyQt program that calls QProgressDialog at various times. Instead of each occurrence calling a variation of this: self.cat_progress = QProgressDialog(self.root) self.cat_progress.setMinimumWidth(800) …
A_Wunder
  • 96
  • 1
  • 7
0
votes
1 answer

Why is QProgressDialog always showing at app startup?

In a PyQt GUI, I will have several workers (QObjects associated to QThread), and 1 QProgressDialog per worker. Each one may have a different lifespan than the other. I naively made the following example, where I create all necessary QProgressDialog…
LoneWanderer
  • 3,058
  • 1
  • 23
  • 41
0
votes
1 answer

Qt/C++ How can I disconnect a QProgressDialog::canceled signal to its QProgressDialog::cancel slot?

I have a QProgressDialog and I would like to override its cancel() slot to change its behavior. Instead of closing the dialog, I would like to do some other operations and then close the dialog after a QThread to finish before closing the dialog. I…
Pat. ANDRIA
  • 2,330
  • 1
  • 13
  • 27
1
2