I have a QToolBar with several QToolButtons that change state (and icon) when clicked. This works just fine when the toolbar is visible. However, when the window is shrunk such that the toolbar becomes an "overflow" menu (accessible via the chevron icon >>), the icons do not get updated in the menu. E.g.,
Note that the icon does get updated eventually, when the toolbar becomes visible again.Qt Code:
if (state_ == Qt::Checked || state_ == Qt::PartiallyChecked) { state_ = Qt::Unchecked; } else { state_ = Qt::Checked; } if (a) { a->setIcon(icon_[state_]); }To copy to clipboard, switch view to plain text mode
Is this a known bug in Qt4.2?
Bookmarks