Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading a .ui file crashes #124

Open
hannesdelbeke opened this issue Sep 24, 2024 · 1 comment
Open

loading a .ui file crashes #124

hannesdelbeke opened this issue Sep 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hannesdelbeke
Copy link
Collaborator

Mark Sneddon
We use .ui files generated from Qt Designer to author (some) ui layouts. A sample of the code we would use to load that would be something like this :

q_file = QtCore.QFile(<path to .ui file>)
q_file.open(QtCore.QFile.ReadOnly)
q_loader = QtUiTools.QUiLoader()
<UI window class>.ui = q_loader.load(q_file, self)

however, the issue seems to occur specifically around having a QUiLoader object initialised - if you initialise one immediately after startup and then instantiate the QApplication instance to wrap the blender application - crash to desktop. Conversely, if you instantiate the QApplication instance to wrap the blender application, works fine, until you instantiate a QGuiLoader object - then you get crash to desktop.
You can (and I have) tested it with just those small amount of simple steps

AssetCatalog.zip

@hannesdelbeke
Copy link
Collaborator Author

hannesdelbeke commented Oct 6, 2024

i bleieve this is pyside6 related
current workaround, convert ui files to py files

pyside6-uic "input.ui" -o "output.py"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant