Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.4.2
-
None
Description
Reproducible testcase does not restore the window when minimized on Ubuntu X11 and Wayland. Works on Windows 10:
from PySide6.QtWidgets import QApplication, QWidget from PySide6.QtCore import QTimer import sys def window_show_normal(): print('Restoring window!') # Window not shown on Ubuntu X11 and Wayland, works on Windows 10 # Window hide() followed by showNormal() is a workaround # window.hide() # Restore window should work on all desktops! window.showNormal() if __name__ == '__main__': app = QApplication(sys.argv) window = QWidget() window.resize(300, 200) window.setWindowTitle('Simple Window') # Minimize window window.showMinimized() # Restore window after 3 seconds QTimer.singleShot(3000, window_show_normal) sys.exit(app.exec())