Bug 429980

Summary: Controls on ScrollablePages don't detect mouse hover unless hoverEnabled is explicitly set
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Noah Davis <noahadvs>
Component: generalAssignee: Marco Martin <notmart>
Status: REPORTED ---    
Severity: normal CC: bjoern.stresing, nate
Priority: NOR    
Version: Master   
Target Milestone: Not decided   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Potential Fix

Description Noah Davis 2020-12-03 16:12:08 UTC
SUMMARY
This might sound like expected behavior, but Plasma now has hover effects enabled by default via the useHoverEffects QStyleHint in plasma-integration. QQC2 automatically enables hover effects when this style hint is enabled.

STEPS TO REPRODUCE
1. run `QT_QUICK_CONTROLS_STYLE=Fusion kirigami2gallery` (any style that doesn't explicitly set hoverEnabled will have the same issue)
2. Go to the Button gallery page
3. Hover over all of the buttons

OBSERVED RESULT
None of the buttons show the hover effects they would normally have.

EXPECTED RESULT
Buttons should have hover effects if Qt.styleHints.useHoverEffects is true.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20201201
KDE Plasma Version: 5.20.80
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Kernel Version: 5.9.8-2-default
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-6500U CPU @ 2.50GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 520
Comment 1 Björn Stresing 2022-02-21 22:28:39 UTC
Created attachment 147022 [details]
Potential Fix

This would be the obvious fix. However, I am not sure what side effects this might have. At first glance it seems to fix the problem.