Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7.2
-
None
-
-
2ced94b41 (dev), 31367fd2c (6.8)
Description
When running a Qt Widgets application on Windows 11 with the operating system visual mode set to "dark", and with the Qt Widgets application forced to light mode using
qputenv("QT_QPA_PLATFORM", "windows:darkmode=0");
the Qt application's menu items are dark and unreadable. See attached photo.
To reproduce,
- set the Windows 11 mode to dark
- in Qt Creator
- create a fresh Qt Widgets in Qt Creator
- add a menu and menu item
- then at the top of main() function, add
- qputenv("QT_QPA_PLATFORM", "windows:darkmode=0");
- compile and run
This menu problem is in Qt 6.7.2 but not present in Qt 6.5.5.