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

QML MessageDialog doesn't work properly with QGuiApplication

XMLWordPrintable

    • aecdaf53ceb2f3fbb5b37b1977fbd74bc21bbb4f 35589b1f5a4e86856c7024bbfb067e0835c703f6 9721db8ae2e7f0081ebdecd0ca7c823b47deada0

      Steps:
      Build and run the example application
      Press "Open message"

      Result:
      -Message dialog text is blurry
      -You cannot press either one of the buttons
      -You get an error setGeometry: Attempt to set a size (248x87) violating the constraints(248x118 - 16777215x16777215) on window QQuickWindow/''.
      -Message dialog layout seems to be uncorrect

      Close the message dialog and press "Open message" again, after that you're able to press the buttons and the error is gone but the rest of the problems are still there.

      Everything works fine if you use QApplication instead of QGuiApplication

        1. qtbug41734.zip
          2 kB
        2. qtbug41734.png
          qtbug41734.png
          20 kB
        3. qtbug41734_2.zip
          3 kB
        4. qtbug41734_win.jpg
          qtbug41734_win.jpg
          26 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            srutledg Shawn Rutledge
            kehayryn Keijo Hayrynen
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: