[SOLVED] Global progress bar and disabling main window
-
Hi,
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:
!http://i.stack.imgur.com/Lf4IR.png(Demo)!As you can see, background is nicely shaded. Can I have similar effect with Qt?
-
You have indeed a such class:
http://qt-project.org/doc/qt-5.1/qtwidgets/qprogressdialog.html -
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 );@