[SOLVED] Global progress bar and disabling main window
My desktop application has many operations which can take a while (for example file is downloading) and I want to disable all UI interactions until file is downloaded. For now I solved this by creating modal dialog with progress and status info. I'm wondering if Qt has some fancy solution for that? For example, in Android API you can easily create global progres like on this picture:
As you can see, background is nicely shaded. Can I have similar effect with Qt?
In my modest opinion there are many ways to solve this problem. For example I normally use a thread for download and a on top form with the progress bar.
You have indeed a such class:
to get the same effect I think it would work:
- style sheets for widgets :disabled state
- before long operation:
@foreach( QWidget *w, mainWindow )
w->setEnabled( false );@
Thanks a lot! Problem solved