[Qt-interest] Is there any way to pass mouse events through a top level widget?
sudhish kapoor
kapoorsudhish at gmail.com
Sat Sep 11 06:01:34 CEST 2010
If you want to handle the events in the parent widget of the top level
widget, in the event loop of top level widget put an event->ignore() and
emit the same event back and handle it in the parent's event loop, this
should help.
Sudhish
On Sat, Sep 11, 2010 at 8:11 AM, liang jian <jianliang79 at gmail.com> wrote:
> I know there is an attribute called
> Qt::WA_TransparentForMouseEvents can disable the delivery of mouse
> events, but unfortunately it works only for child widgets.
> I have also try to override event() method to ignore all the mouse
> events, but Qt will not propergate these mouse events to its parent
> because it is a top-level widget.
> Is there any way to pass mouse events through a top level widget?
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Regards,
Sudhish Kapoor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100911/4dfa8061/attachment.html
More information about the Qt-interest-old
mailing list