[Qt-interest] How to solve grabmouse issue

Atlant Schmidt aschmidt at dekaresearch.com
Wed Jul 28 15:44:45 CEST 2010


Ramesh:

  First question: Are you sure you NEED to grab the mouse?

  But if the answer to that is "Yes", then once your widget has
  grabbed the mouse, your widget is responsible for it. If the mouse
  exits the active area of your widget (that has grabbed the mouse),
  then the only way the mouse goes free again is if that widget
  chooses to releaseMouse().

                            Atlant

________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Ramesh
Sent: Wednesday, July 28, 2010 9:21 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] How to solve grabmouse issue

Hi,
I have two graphics item on a scene.. I require grabmouse for one graphicsitem, if I do any mouse operation on another graphics item it doesn't take mouse events at all..

I will not be having any idea that when user moves to second graphics item to ungrab the mouse from first graphics item.
How to handle this situation.

Thanks



-----------------------------------------------

Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.


Click here<https://www.mailcontrol.com/sr/GosEtLX7AonTndxI!oX7UsdpzMR7Bo2KLp8L+M43NPkjL7CR5cIPr7MnkGnku+LrnRTBxvdS5uJICd5VsZuQpQ==> to report this email as spam.


________________________________
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100728/7c6b0a18/attachment.html 


More information about the Qt-interest-old mailing list