Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83244

QMessageBox static member dialogs getting lost behind parent widget

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.15
    • 5.14.0 RC2
    • None
    • macOS Catalina 10.15.4
    • macOS

      On macOS (I haven't tested on any other OS), when a static member of QMessageBox is called, such as

      QMessageBox::information(this, "Title", "Text");

      the message box pops up like normal, but if the user clicks on the parent window the message box gets 'lost' behind the parent, making it impossible to interact with anything else since the messagebox is application modal. If possible, it would be really nice to be able to have a WindowModal version of the messagebox because when a messagebox is WindowModal it 'scrolls down' from the parent dialog and appears within the parent as opposed to on top of the parent. This makes sure it won't get lost of the user clicks somewhere on the parent dialog.

      So maybe something like:

      QMessageBox::information(this, QString title, QString text, Qt::WindowModality modality);
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vestbo Tor Arne Vestbø
            zetrick zetrick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes