QTabWidget in QScrollArea scroll wheel event issues
-
Hi all,
i am using a QTabWidget which is embedded inside a QScrollArea.
The problem now is that scrolling via the MouseWheel when hovering the Tabs not only scrolls trough the tabs, but also scrolls the QScrollArea vertically. Is there any possibility to prevent this behaviour?
When using other widgets like QSpinBox inside my QScrollArea this problem does not apprea, it seems for SpinBoxes the focus is correctly set and only the box itself scrolls.
What i tried so far is EventFilters for the wheel event and also setting different FocusPolicies (e.g. StrongFocus) for the TabWidget and QScrollArea.I am using QT 5 with C++ building a Desktop Application.
Thanks for your help. -
Hi all,
i am using a QTabWidget which is embedded inside a QScrollArea.
The problem now is that scrolling via the MouseWheel when hovering the Tabs not only scrolls trough the tabs, but also scrolls the QScrollArea vertically. Is there any possibility to prevent this behaviour?
When using other widgets like QSpinBox inside my QScrollArea this problem does not apprea, it seems for SpinBoxes the focus is correctly set and only the box itself scrolls.
What i tried so far is EventFilters for the wheel event and also setting different FocusPolicies (e.g. StrongFocus) for the TabWidget and QScrollArea.I am using QT 5 with C++ building a Desktop Application.
Thanks for your help.@s0H57 Yep I have the same issue and just posted about it ...
https://forum.qt.io/topic/143148/qtabwidget-in-qscroll-area-concurrent-scrolling
Maybe a bug ?