[Qt-interest] bring a progressdialog in front of a qfiledialog
Yifei Li
yifli at mtu.edu
Wed Oct 28 19:38:10 CET 2009
Hi all,
I want to show a progressdialog immediately after I hit 'Open'. I tried BOTH modal and modaless qfiledialg, but still can't bring the progressdialog to the front. The progressdialog only flashed after the qfiledialog is closed.
Here is what I did:
file = QFileDialog::getOpenFileName(...);
if( !file.isEmpty() )
{
QProgressDialog progress(...);
progress.setWindowFlags(Qt::WindowStaysOnTopHint);
progress.raise()
....
}
Can anyone help me with this? Thanks
Yifei
More information about the Qt-interest-old
mailing list