[Qt-interest] Filtering Mouse events in QT

Jeroen De Wachter jeroen.dewachter at barco.com
Wed Mar 10 16:51:10 CET 2010


Hi Zaid,

I think a good place to start looking is the Mouse Tracking in QWidget 
(which will always trigger mouseMoveEvents on your widget, no matter if 
a mouse button was pressed on it or not) and the Drag&Drop functionality 
embedded in Qt: http://qt.nokia.com/doc/4.6/dnd.html

I don't think filtering the events is the best approach here, but other 
may prove me wrong.

Kind regards,

Jroen

Zaid Amir wrote:
> Hi
>
> I am trying to filter mouse events and keyboard gestures in QT. Basically I
> have a webkit qwidget and I'm trying to disable text selection. I need to do
> something like when a user tries dragging the mouse over some text or
> dragging an image.
>
> I am not sure how I can start doing this in QT since its not MFC based and I
> don't have the faintest idea on how to get windows messages in QT.
>
> Any suggestions would be appreciated.
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>   





More information about the Qt-interest-old mailing list