<div dir="ltr">Hi,<br><div><br></div><div>As soon as I have this code in my QStyle subclass, the highlighting of the QToolButton icon seems to get stuck after selecting an entry from its menu.</div><div><br></div><div>QPixmap Style::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const<br>{<br>  if (iconMode == QIcon::Active) {<br>    return Colorize(pixmap, opt->palette.color(QPalette::Highlight), 0.5f);<br>  }<br></div><div>  return QProxyStyle::generatedIconPixmap(iconMode, pixmap, opt);<br>}<br></div><div><br></div><div>Here is what is happening: <a href="https://imgur.com/a/Q7UBxEu">https://imgur.com/a/Q7UBxEu</a></div><div><br></div><div>The minimal reproducible example is available here: <a href="https://github.com/lpapp/examples/blob/main/qt-toolbutton-dropdown">https://github.com/lpapp/examples/blob/main/qt-toolbutton-dropdown</a></div><div><br></div><div>Thank you in advance.</div><div><br></div><div>Kind regards,</div><div>László</div><div><br></div><div><br></div></div>