<div dir="ltr">Hi Phil, hi list,<div><br></div><div>I have an issue using uic plugins for custom widgets.</div><div><br></div><div>The idea of the plugin (either MODULE or CW_FILTER) is to redirect import from the c++ header of the custom widget to the proper python module.</div><div>This does not seem to be working for top level widgets.</div><div><br></div><div>I have a concrete example using QGIS' custom dock widget (QgsDockWidget).</div><div>When setting a UI file with this widget and using loadUiType, I get this error:</div><div><br></div><div><div>File "/usr/lib64/python2.7/site-packages/PyQt4/uic/__init__.py", line 215, in loadUiType</div><div>    return (ui_globals[winfo["uiclass"]], getattr(QtGui, winfo["baseclass"]))</div><div>AttributeError: 'module' object has no attribute 'QgsDockWidget'</div></div><div><br></div><div>Looking down to the code made think that there's something wrong in the parser in setupObject where probably the top level widget is set without taking care of the custom widgets.</div><div><br></div><div>Phil, does that speak to you?</div><div>Would you need me to try to track the issue to a more precise point?</div><div>Or to give you step to reproduce using QGIS?</div><div><br></div><div>Thanks a lot by advance,</div><div>Kind regards,</div><div>Denis</div><div><br></div></div>