[Qt-interest] Restricting specified mouse events

Shashank Singh shashank.personal at gmail.com
Mon May 25 11:28:59 CEST 2009


hi,
you can do QWidget::grabMouse() and then selectively handle events , and
dispatch only the events you want using postEvent().
On Mon, May 25, 2009 at 2:32 PM, Nitin Mahajan <nitinm76 at yahoo.com> wrote:

>
> HI!
>
> How can I limit the mouse movement(and hence any events propagation) to a
> specified rectangular area in a Widget, Screen or Application window?
>
> Alternatively is there a way to disable all mouse activity including basic
> mouse movement, but except left button click events in an application?
>
> Thanks and regards
>
> -Nitin
>
>
>      New Email names for you!
> Get the Email name you've always wanted on the new @ymail and @rocketmail.
> Hurry before someone else does!
> http://mail.promotions.yahoo.com/newdomains/aa/
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
Regards:
Shashank Singh
Associate - Software | New Technologies team
Geodesic Limited |  <http://www.geodesic.com>
Tel: +91 22 2831 2872

Blog:http://techfreaks4u.com/blog
Marble contributor : http://edu.kde.org/marble/
KDE-in Volunteer : http://www.kde.in/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090525/e3947d52/attachment.html 


More information about the Qt-interest-old mailing list