Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.1.1, 5.2.0 Beta1
-
None
-
PC Windows
Description
I work on an application having a 3D view that need catch all mouse events to be able to manage drag and drop, highlighting,...
This 3D view is a QQuickItem that re-implement mouse*Event(QMouseEvent* event) and hover*Event(QHoverEvent* event) methods.
Our GUI is build in QML on top of the 3D view.
I have implemented a ToolTip Item that is derived from a MouseArea. This MouseArea is over every other elements (out of the tree where the picking is done).
All buttons works well, but the view 3D doesn't receive the hover events.
I am expecting that refusing the PositionChanged event allow hover events to be propagated.
We use hover events in the 3D view to highlight objects.
Main part of the ToolTip implementation:
MouseArea { anchors.fill: parent hoverEnabled: true preventStealing: false propagateComposedEvents: true onPressed: { mouse.accepted = false // Fix lock of other MouseArea under this one } onPositionChanged: { mouse.accepted = false ... } }
I don't want put my tooltip component in all our menus to reduce the number of items and code complexity.