Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2198

Stage Manager on MacOS Ventura breaks showMinimized() functions in both PySide6 and PyQt5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.4.2
    • PySide
    • None
    • MacOS Ventura 13.0.1
      M1 MacBook Air 2020 Base Model
    • macOS

    Description

      The "showMinimized()" function in both PySide6 and PyQt5 can only minimize a window once, then the function has no effect. I have tried this with Stage Manager disabled, and everything was working fine, which means it's something wrong with Stage Manager (it is a new feature anyway). My original thread with all the information regarding this bug can be found here: https://forum.qt.io/topic/142235/stage-manager-breaks-pyqt5-showminimized-function

      A simple example which can be used to reproduce this bug:
       
      import sys
      from PyQt6.QtWidgets import *

      app = QApplication(sys.argv)

      window = QMainWindow()
      menubar = window.menuBar()
      menubar.setNativeMenuBar(False)
      window.show()
      minimizeAction = menubar.addAction('Minimize')

      minimizeAction.triggered.connect(lambda: window.showMinimized())

      app.exec()

       

      Thanks.

      Attachments

        Issue Links

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

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              ard_flamingo Bob Bob
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes