[Interest] Full screen dialogs with modal input dialogs

Alexander Syvak alexander.svk at gmail.com
Mon Jul 29 15:25:15 CEST 2013


Hello,

there's a dialog calling a dialog as following

      p.setWindowFlags(Qt::FramelessWindowHint);//Qt::Popup); // N.B. !!!
Popup doesn't require a title bar and a parent.

    auto const full_screen_rect =
QApplication::desktop()->screenGeometry(); // N.B. !!! Returns the
geometry of the screen with index screen.


      // The default screen is used if screen is -1.

    p.setGeometry(full_screen_rect);

    p.showMaximized();

    int const usr_answer = p.exec();


When the p dialog inheriting QDialog calls any of QMessageBox,
QInputDialog, QFileDialog, it's hidden and after user chooses a file in
any of those 3 inputs, the dialos is still not shown.
And using QFileDialog yields RPC not avaialble error
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130729/60297bcd/attachment.html>


More information about the Interest mailing list