[PyQt] Re: PYQT Problem in mouse event

Georg Altmann george at george-net.de
Fri Sep 19 12:14:44 BST 2008


Min Li schrieb:
> Hi, everyone
> 
>      I'm doing a project with PYQT now. However, I'm not clear about how to
> use the 'QTextEdit.mouseDoubleClickEvent'. I mean when I double click my
> mouse on the QTextEdit,  something was happened. How can I write the code
> for that? Is there anyone can give me some suggestions?

You need to subclass QTextEdit and overload mouseDoubleClickEvent.

See for example http://www.commandprompt.com/community/pyqt/x2629


Regards
Georg



More information about the PyQt mailing list