Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.0
-
-
738c180c4 (dev), 9c58b6ce1 (6.9), 53fb13456 (dev), a49ca7009 (6.8), 70b8dd2b7 (dev), 7318bfb47 (dev), e9d441253 (dev), bec7201f3 (dev)
Description
QStyleHints::setColorScheme() doesn't affect the application's theme on Ubuntu. The method works fine on Windows, but it doesn't seem to work on Ubuntu when trying to force the theme (dark/light) with the code below:
Qt::ColorScheme color = qApp->styleHints()->colorScheme() == Qt::ColorScheme::Light ? Qt::ColorScheme::Dark : Qt::ColorScheme::Light;
qApp->styleHints()->setColorScheme(color);
Attachments
Issue Links
- relates to
-
PYSIDE-3040 QPalette.ColorRole.Base incorrect on Gtk based Linux machines
-
- Closed
-
- resulted in
-
QTBUG-135037 QKdeTheme leaks QFont objects
-
- Closed
-