I have several Dialogs with window Flags as WindowStaysonTopHint. When I open QFileDialog it displays at the bottom of these dialogs. How to set window Flag for QFileDialog. I use the following code to display the dialog at the top but it doesn't work.
> QFileDialog *dialog=new QFileDialog();
>
> dialog->setWindowModality(Qt::ApplicationModal);
>
> dialog->setModal(true);
> dialog->setWindowFlags(Qt::WindowStaysonTopHint);
> dialog->getExisitngDirectory(this,tr("Directory"),"\home" ,QFileDialog::ShowDirsOnly);
Simply, I am looking for a non static get existing directory function.
Bookmarks