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

QGuiApplication::lastWindowClosed is issued when there is still opened main window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.5, 5.12.10
    • GUI: Window management
    • None
    • Windows 10
    • Windows

    Description

      1. Create empty Quick application.
      2. Change QGuiApplication to QApplication and enable widgets in .pro file.
      3. In Qml code, open ColorDialog.

      Bug: when the color dialog is closed, the main window, created by QML is still active, but QGuiApplication::lastWindowClosed is issued. It seems it's issued by widgets core, which does not know that windows can be created by other Qt components.

      I've attached a minimal reproducible example.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            alervd Alexander Dyagilev
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes