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

QML Window won't show when pressed in the task bar after window.hide()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.3, 6.7.3, 6.8.0
    • Quick: Other
    • None
    • macOS

    Description

      Running the following code in macOS 15 (Sequia) will demonstrate the bug - after clicking the button and trying to show the app by clicking on the task bar app icon - the window won't show up as it should. While setting a QWidgets window visibility to false seems to work.

      See attached video.

      import QtQuick
      import QtQuick.Controls
      
      Window {
          id: root
          width: 400
          height: 400
          visible: true  
        
          Button {
              anchors.centerIn: parent
              text: "Click me"
              onClicked: root.hide()
          }
      } 

      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
            rubymamis Ruby Mamistvalove
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes