[PyQt] pyuic4 error for custom widgets
Christoph Burgmer
chrislb at gmx.de
Fri Jan 16 02:21:22 GMT 2009
Am Friday, 16. January 2009 schrieb Suha Onay:
[...]
> I defined the plugins for QT Designer and used custom widgets in
> Designer to form the ui's.
> When it comes to compiling these ui files which has MCLabel widgets,
> it gives an error saying unknown baseclass 'MCSimpleLabel' .
> How should I change the plugins or widgets file not to face an error?
> The files are attached.
I reported earlier on this list that even KDE4 'custom classes' don't compile
properly using pykdeuic4 which is built upon pyuic4.
I now run a Makefile which automatically patches the compiled output to my
needs:
1. patch the .ui file and replace your classes with their Qt base class (or a
placeholder) which uic knows about
2. compile with uic
3. patch the output to include the original classes and move wrong imports to
the top of the file.
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090116/a6aa7768/attachment-0001.html
More information about the PyQt
mailing list