[Qt-interest] Iaaue with mouseGrabber
Dominik Zäuner
dominik.zaeuner at surgiceye.com
Tue Jul 26 09:42:25 CEST 2011
On 25.07.2011 13:28, 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.
>
Have you tried using QObject::sender(), which gives you the widget that
triggered the signal and casting this to a QPushButton?
Best regards,
Dominik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110726/bfa7b817/attachment.html
More information about the Qt-interest-old
mailing list