Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8.3, 6.9.0
-
-
839d569dc (dev), fcd76f6d2 (6.10), 4b32de005 (6.9), 51f88f891 (tqtc/lts-6.8)
Description
The icon of the QCommandLinkButton does not update when the button's visibility is set to true.
To reproduce the issue, run the attached example project.
As a workaround, overriding CComandLinkButton::event(QEvent *e) fixes the issue:
bool event(QEvent *e) { // // if (e->type() == QEvent::StyleChange) { // // QStyleOptionButton opt; // // initStyleOption(&opt); // // setIcon(style()->standardIcon(QStyle::SP_CommandLink, &opt, this)); // // } return QPushButton::event(e); }
Attachments
For Gerrit Dashboard: QTBUG-137011 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
651098,2 | QCommandLinkButton: Don't reset icon on change to QStyleSheetStyle | dev | qt/qtbase | Status: MERGED | +2 | 0 |
651234,2 | QCommandLinkButton: Don't reset icon on change to QStyleSheetStyle | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |
651627,2 | QCommandLinkButton: Don't reset icon on change to QStyleSheetStyle | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
651695,2 | QCommandLinkButton: Don't reset icon on change to QStyleSheetStyle | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |