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

QDialog is not top-level

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.1
    • 5.9.2, 5.12
    • GUI: Window management
    • None
    • Tested on openSUSE Leap 42.3 with 4.8.7 (OS), 5.6.2 (OS), 5.9.2 (self built), 5.11.2 (self built)
    • Linux/X11
    • 0de4b326d8e02c228ebefcac1abe069c45cbb5c4 (qt/qtbase/5.12)

    Description

      A QDialog should be top-level. This is also stated in the Qt5 documentation: "A dialog window is a top-level window mostly used for short-term tasks and brief communications with the user." (http://doc.qt.io/qt-5/qdialog.html) But since Qt5 this is not the case anymore. Run attached file with Qt4 and it behaves as stated, but running it with Qt5 the dialog disappears in the background as soon as the main window has the focus.

      Attachments

        1. main.cpp
          0.4 kB
          Alan Blotz

        Issue Links

          For Gerrit Dashboard: QTBUG-70756
          # Subject Branch Project Status CR V

          Activity

            People

              paeglis Gatis Paeglis
              ablotz Alan Blotz
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes