QProgressDialog: Fit progress bar to window
I created a progress dialog and hide the cancel button:
In my opinion the progress bar is to short. Is there any possibility to fit the progress bar to the dialog (horizontally)?
The space on the right is for progress text. It appears that the range and value are currently zero (green section in middle suggests this) so there is no text to display.
If you turn off the the text (i.e. progressBar->setTextVisible(false); ) the size will be the width of the dialog.
Thanks a lot!