[Qt-interest] How to solve grabmouse issue

Ramesh ramesh.bs at robosoftin.com
Wed Jul 28 15:52:27 CEST 2010


Yup atlant,

It must need grabmouse..

Else it will not work.

 

Is there any way to send those mouse events to scene from the graphicsitem..
hope this can work.

 

While googling, I found this
http://stackoverflow.com/questions/2158810/passing-forwarding-events-to-a-su
b-object-in-qt

I don't know how to implement this

 

From: Atlant Schmidt [mailto:aschmidt at dekaresearch.com] 
Sent: Wednesday, July 28, 2010 7:15 PM
To: Ramesh; qt-interest at trolltech.com
Subject: RE: [Qt-interest] How to solve grabmouse issue

 

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+M43NPkj
L7CR5cIPr7MnkGnku+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.


-----------------------------------------------
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100728/82248191/attachment.html 


More information about the Qt-interest-old mailing list