[PyQt] override className() in QMetaClass
daniel.goertzen at gmail.com
Thu Sep 8 22:33:17 BST 2011
Does pyqt provide a way to override the class name when deriving a QObject
An example of why this is wanted:
...(dynamically generate class attributes and methods)
All classes generated by the above function will come back with className()
as "temp". This causes headaches for Designer.
I know I can add a metaclass to mangle the class name, but I was wondering
there was an easier way (ie, does QObject's metaclass provided a way to
rename the class?)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt