Checkable QAction with icon does not show state on Windows 11 with qwindowsvistastyle
-
Hi,
Our app is built with Qt 5.15.2, and we found some weird issue with qwindowsvistastyle on Windows 11. We noticed that checkable action with an icon do not show the check state in a menu. We found this in a toolbar's menu, but we managed to reproduce it in the menu bar as well. We were able to reproduce this in Qt Application example by adding this to mainwindow.cpp :
openAct->setCheckable(true); openAct->setChecked(true);
It gives the following result with qwindowsvistastyle :
Without qwindowsvistastyle :
I'm wondering if some configuration or code tweaks could fix this, but I have no clue. If this is only an internal Qt bug, could it be fixed as part of the 5.15 LTS ?
Is there also a way to show the checked state next to the icon ?
Thank you in advance,
Tudal
-
Do you have to same problem on Windows 10?
-
Then something must changed between Win 10 and 11 - please open a bug report for it.
-
Issue can be found here : https://bugreports.qt.io/browse/QTBUG-98354