Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@aoblet
Copy link
Contributor

@aoblet aoblet commented Dec 21, 2018

Workaround to pyside-77 bug.

From the QUiLoader doc we should use registerCustomWidget method to handle custom widgets.
But on some platforms, this is causing a segfault by calling QUiLoader.createWidget.

So instead we fetch from customwidgets DOM node the python class objects.
Then we can directly use them in createWidget method.

This also fixes #295.

@CLAassistant
Copy link

CLAassistant commented Dec 21, 2018

CLA assistant check
All committers have signed the CLA.

@aoblet aoblet force-pushed the ui_custom_widgets branch 5 times, most recently from 1f747be to 6be2ca0 Compare December 21, 2018 18:13
aoblet and others added 3 commits December 21, 2018 19:24
- Workaround to pyside-77 bug which causes a crash (by using
registerCustomWidget)
@aoblet
Copy link
Contributor Author

aoblet commented Jan 2, 2019

Is it okay for you ?

@mottosso
Copy link
Owner

mottosso commented Jan 4, 2019

Yes! Thanks for this, including a test; excellent work.

@mottosso mottosso closed this Jan 4, 2019
@mottosso
Copy link
Owner

How confusing; the issue reads as open, and merged, and closed at the same time. It was merged, right here.

Closing this (again).

@mottosso mottosso closed this May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Widget not supported

4 participants