On 28-4-2010 14:04, Sebastian Elsner wrote: > Documentation suggests that I subclass the line edit and reimplement > the dropEvent.
That sounds good to me. > Would not be a problem, but my Line edit widget already exists on the > dialog, so how to subclass without creating a completely new > instance? Or is there another way I don't see? You can register your subclass in the designer, and tell it to replace the QLineEdit instances with your subclass. In the field that would ordinarily hold the .h file that defines the subclass, enter the .py file instead. Regards, -- Sybren A. Stüvel http://stuvel.eu/
signature.asc
Description: OpenPGP digital signature
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
