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

Windows 10 Platform MenuBar hidden shortly before application is closed

XMLWordPrintable

      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.

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

            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

              Created:
              Updated:

                There are no open Gerrit changes