Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
6.6.0, 6.6.1, 6.6.2, 6.6.3
-
None
-
Python 3.11.5 and 3.12.0
Windows 10.0.19045 (64bit)
Description
Hello,
I try code from: https://doc.qt.io/qtforpython-6/tutorials/basictutorial/uifiles.html section
Option B: Loading it directly
import sys from PySide6.QtUiTools import QUiLoader from PySide6.QtWidgets import QApplication from PySide6.QtCore import QFile, QIODevice if __name__ == "__main__": app = QApplication(sys.argv) ui_file_name = "mainwindow.ui" ui_file = QFile(ui_file_name) if not ui_file.open(QIODevice.ReadOnly): print(f"Cannot open {ui_file_name}: {ui_file.errorString()}") sys.exit(-1) print('before') loader = QUiLoader() print('after') window = loader.load(ui_file) ui_file.close() if not window: print(loader.errorString()) sys.exit(-1) window.show() sys.exit(app.exec())
Result is (I needed kill process):
python.exe test.py
before
Process finished with exit code -1
Pyside6==6.5.3 working as charm.
Attachments
Issue Links
- duplicates
-
QTBUG-117882 Qt 6.6.0rc QWebView on Windows locks
- Closed
- is duplicated by
-
QTBUG-118534 [REG 6.6] linguist freezes when trying to display .ui files
- Closed