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

Windows 10 Platform MenuBar hidden shortly before application is closed

    XMLWordPrintable

Details

    Description

      This makes the whole window "jump" when closing the application, instead of just smoothly fading out as it normally would.

      I would expect it to stay visible like other stuff in the application. See notepad-plus-plus-menubar-app-close.gif for the expected behaviour.

      Happens with Slate, and with this minimal example:

      import QtQml 2.2
      import QtQuick.Controls 2.1
      
      import Qt.labs.platform 1.0 as Platform
      
      ApplicationWindow {
          id: window
          objectName: "window"
          width: 1200
          height: 800
          visible: true
      
          onClosing: {
              close.accepted = false
              Qt.quit()
          }
      
          Platform.MenuBar {
              Platform.Menu {
                  id: fileMenu
                  objectName: "fileMenu"
                  title: qsTr("File")
      
                  Platform.MenuItem {
                      objectName: "newMenuItem"
                      text: qsTr("New")
                  }
              }
          }
      }
      

      If I take away the onClosing handler, the problem goes away.

      Attachments

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              mitch_curtis Mitch Curtis
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: