[PyQt] QLineEdit drop event

Sebastian Elsner sebastianelsner at freenet.de
Wed Apr 28 13:04:41 BST 2010


I designed a GUI with Qt Designer. The GUI has several QLineEdits. I'd  
like to be able to drop files from the windows explorer to this line edits  
and display the path of the files. Documentation suggests that I subclass  
the line edit and reimplement  the dropEvent. 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?

Thank you for any suggestions



Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

More information about the PyQt mailing list