Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.2.1, 5.14.1, 5.15.0 Beta2
-
Windows 7 x86 - MinGW compiler
Description
Usually, you can scroll a QGraphicsView with the mouse wheel, if the mouse cursor is within the view widget. But is the cursor is right above a disabled QGraphicsItem (in my case, the cursor is a child item, whose PARENT is disabled), the mouse wheel does not scroll the view, although none of my widgets overloads the wheelEvent method.
It seems like the disabled item "accepts" the wheelEvent (possibly other events, too?) when it shouldn't (maybe to prevent that the event is passed to the item behind, is this intended?).
My personal fix: reimplement wheelEvent in the scene and call ignore() on the event. None of my items uses that event, so I don't have to care about passing the event further.
Attachments
Issue Links
- relates to
-
QTBUG-101471 Scrolling hijacked by scrollable child input widgets
- Reported