Bug 429980 - Controls on ScrollablePages don't detect mouse hover unless hoverEnabled is explicitly set
Summary: Controls on ScrollablePages don't detect mouse hover unless hoverEnabled is e...
Status: REPORTED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: Master
Platform: Other Linux
: NOR normal
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-03 16:12 UTC by Noah Davis
Modified: 2022-02-21 22:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Potential Fix (560 bytes, text/plain)
2022-02-21 22:28 UTC, Björn Stresing
Details

Note You need to log in before you can comment on or make changes to this bug.
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.