[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] Re: PYQT Problem in mouse event
From: Georg Altmann <george () george-net ! de>
Date: 2008-09-19 11:14:44
Message-ID: gb01lj$jfo$1 () ger ! gmane ! org
[Download RAW message or body]
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
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic