Skip to content

loading a .ui file crashes #124

@hannesdelbeke

Description

@hannesdelbeke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions