Window event problem
Posted: Thu Feb 07, 2008 16:04
Hi All,
I have a problem with the setMousePassThroughEnabled() function when I'm trying to disable all mouse events on a StaticText widget.
It works fine for passing through the mouseover (mouseEnter/mouseLeave) events but when I try to click on the underlying PushButton widget, the event isn't propagated through.
What I have at the moment is a PushButton widget with a Static Text widget overlayed on top and to the right of the button. I setMousePassThroughEnabled(true), on the StaticText widget and that allows the mouseHover event to work fine, however when I try to click in the area covered by the StaticText widget but also over the button, nothing happens, my EventClicked callback isn't triggered
I've tried also setting a callback on the StaticText widget for a mouseButtonUp event with no success, is this a bug?
Any solutions greatfully received.
Thanks.
I have a problem with the setMousePassThroughEnabled() function when I'm trying to disable all mouse events on a StaticText widget.
It works fine for passing through the mouseover (mouseEnter/mouseLeave) events but when I try to click on the underlying PushButton widget, the event isn't propagated through.
What I have at the moment is a PushButton widget with a Static Text widget overlayed on top and to the right of the button. I setMousePassThroughEnabled(true), on the StaticText widget and that allows the mouseHover event to work fine, however when I try to click in the area covered by the StaticText widget but also over the button, nothing happens, my EventClicked callback isn't triggered
I've tried also setting a callback on the StaticText widget for a mouseButtonUp event with no success, is this a bug?
Any solutions greatfully received.
Thanks.