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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.5
    • Fix Version/s: None
    • Component/s: GUI: Window management
    • Labels:
      None
    • Environment:
      Windows 10
    • Platform/s:
      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

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

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes