[PyKDE] subclassing widgets contained in a QtDesigner form

Michael Ferraro michael at possibleworlds.com
Fri Oct 25 01:29:01 BST 2002


I would like to sub-class a widget (QLabel for example) that I have
placed (sized, colored, etc.) in QtDesigner in order to overide the
mouseDoubleClickedEvent() .  

I  realize I could modify the class generated by pyuic and
change the "QLabel" to a "MyLabel" for each occurance
but did not want to modify the files generated by pyuic

I was wondering if there is some idomatic way of copying all the
properties of a instance into a new one.without explicitly assigning
them.

Michael




More information about the PyQt mailing list