Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
6.7.0
-
None
-
Ubuntu 24.04. in venv
Description
I write a short program. If I include the line with "Qt.WindowMaximized" the code will not start. If I exclude the line, the program starts immediately.
import sys from PySide6.QtCore import Qt from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton class MainWindow(QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("My App") self.setWindowState(Qt.WindowMaximized) # comment out/in for success/failure button = QPushButton("Press Me!") self.setCentralWidget(button) app = QApplication(sys.argv) window = MainWindow() window.show() app.exec()