Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to enable QPlatformTheme::HoverEffect in GUI #37

Open
q234rty opened this issue Jan 8, 2024 · 0 comments
Open

No way to enable QPlatformTheme::HoverEffect in GUI #37

q234rty opened this issue Jan 8, 2024 · 0 comments

Comments

@q234rty
Copy link
Contributor

q234rty commented Jan 8, 2024

QPlatformTheme::HoverEffect is defined in https://invent.kde.org/qt/qt/qtbase/-/blob/6.6.1/src/gui/kernel/qplatformtheme.h#L264-L274.

According to https://invent.kde.org/qt/qt/qtbase/-/blob/6.6.1/src/gui/kernel/qstylehints.cpp?ref_type=heads#L501-L517 and https://invent.kde.org/qt/qt/qtbase/-/blob/dev/src/gui/platform/unix/qgenericunixthemes.cpp#L503-L504, this should be enabled by default on desktop platforms.

However, qt6ct provides no interface to enable this and the current only way is to delete the line starting with gui_effects in the config file, to force a fallback on QGenericUnixTheme::themeHint(QPlatformTheme::UiEffects). That is however reset whenever one apply settings through the GUI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant