Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.1, 6.6.0 Beta1
-
-
491534006 (dev), c8c3c4406 (6.6), 218d7a9c2 (6.5)
Description
Code
#include <QtWidgets> int main(int argc, char** argv) { QApplication app(argc, argv); QMainWindow w; auto menu_e = w.menuBar()->addMenu("Enabled Menu"); w.menuBar()->addMenu("Disabled Menu")->setDisabled(true); QIcon icon(":/qt_logo.png"); menu_e->addAction(icon, "Enabled"); menu_e->addAction(icon, "Disabled")->setDisabled(true); w.resize(300, 150); w.show(); return app.exec(); }
Expected outcomes (Qt 6.4.3 and older)
Disabled menu items have their icons and text greyed out
Actual outcomes
Disabled menu items have their icons greyed out, but their text look "enabled"
Attachments
Issue Links
- is duplicated by
-
QTBUG-110804 palette's disabled colour group not used when Item is disabled
- Closed
- relates to
-
QTBUG-115036 Windows 10 Dark Mode: Disabled QPushButton labels are not grayed out
- Closed
For Gerrit Dashboard: QTBUG-114821 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
487684,4 | Fix disabled and inactive group palettes for windows native style | dev | qt/qtbase | Status: MERGED | +2 | 0 |
487826,4 | Fix disabled and inactive group palettes for windows native style | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
487827,2 | Fix disabled and inactive group palettes for windows native style | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |