[Qt-interest] Iaaue with mouseGrabber

Brad Hards bradh at frogmouth.net
Mon Jul 25 13:39:02 CEST 2011


On Monday 25 July 2011 21:28:55 nandita-a.mehta at nokia.com wrote:
> Hi
> In my application i need to know which widget received the mouse click and
> for that I am using mouseGrabber(). However the application crashes.
> 
> To make it simple, in my Qt application I have a pushbutton; on its click a
> slot (hideWidget) is triggered. In the slot, I am using mouseGrabber and
> then finding the widget name. Can anyone explain why the app crashes?
Probably because:
If no widget in this application is currently grabbing the mouse, 0 is 
returned.

Perhaps you're confusing mouse press and mouse click, or what grab means.

Brad



More information about the Qt-interest-old mailing list