Checkable QAction with icon does not show state on Windows 11 with qwindowsvistastyle
-
wrote on 8 Nov 2021, 15:27 last edited by Tudal 11 Sept 2021, 13:41
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?
-
wrote on 9 Nov 2021, 08:52 last edited by Tudal 11 Sept 2021, 11:09
-
Then something must changed between Win 10 and 11 - please open a bug report for it.
-
wrote on 15 Nov 2021, 14:16 last edited by
Issue can be found here : https://bugreports.qt.io/browse/QTBUG-98354
4/5