How to keep a dialog window in front of others windows.
I would like to ask how to keep a dialog window in front of the main window when I click over it.
All the best
Do you try the method setModal(true) ?
Thank you for answering!:)
Yes I did this...
But it didn´t work...
Is the "QDialog::exec":http://qt-project.org/doc/qt-4.8/qdialog.html#exec function you are looking for ?
no it didn´t work...
I read about it and its seems to be it...
Thank you cincirin :)
I have this kind of problem but only on Windows not in Linux, but I don't found the solution.
@QDialog *yourDialog = new ...
yourDialog->setWindowFlags(yourDialog->windowFlags() | Qt::WindowStaysOnTopHint);
Thank you DerManu!:)