Unsolved Subclass QUiLoader
-
I'm new here. Should I report this problem as a bug? If so, where?
-
What version of PySide2 are you currently using ?
On what OS ?PySide2 5.11.1 and 5.13.0 on macOS are working with your test example.
-
@sgaist Interesting! I am using version 5.12.4 on Kubuntu 19.04 with Python 3.7.3. Oh, I see that I can upgrade PySide2 to 5.13.0 using pip. I will do so and report back.
-
Nope. Still crashes. You did switch the # to the other return, right?
-
No I didn't because I overlooked it and I must say I expect to run crashing examples with the "working" version in comment rather than the contrary.
Before digging further, can you just explain what you want to do exactly in
createWidget
? -
I would like to wrap the widget and return an instance of the wrapped widget. Since I can't return an instance of the exact same widget without getting a crash, it doesn't seem to be possible to override createWidget, despite claims to the contrary.
-
What wrapping do you have in mind ?
-
I have several ideas. One I would have liked to implement earlier today is a subclass with
__del__
so that I can confirm that I haven't created a cyclic reference. I do this in portions of the GUI I design manually, but I can't do it in portions I design using Qt Designer. -
I wonder if it's a python specific issue.
Can you test if the same issue happens in C++ ?
-
I think it is, but I don't know C++ well enough to write a test program.
-
The problem is officially a bug: