mottosso / Qt.py

Minimal Python 2 & 3 shim around all Qt bindings - PySide, PySide2, PyQt4 and PyQt5.
MIT License
914 stars 254 forks source link

loadUi BUG #344

Closed FXTD-ODYSSEY closed 3 years ago

FXTD-ODYSSEY commented 4 years ago

When I promote a custom widget with different __init__ paramters ,it will hit a Bug here

01

My first parameter isn't the parent object , how to fix is easy.

widget = self.custom_widgets[class_name](parent=parent)
mottosso commented 4 years ago

Thanks for reporting this @FXTD-ODYSSEY, and sorry for the late reply, holiday time over here.

Would you like to edit this and submit a pull-request? That way, the automated tests will kick in and double-check everything is A-OK.