Priority: P2: Important
Affects Version/s: 5.10.0, 5.10.1
Fix Version/s: None
Environment:macOS 10.13.3, Xcode 9.2, Qt 5.10.0 and Qt 5.10.1. bug appears in few clicks.
Windows 10, MSVC 2017 and MinGW 5.3.0, Qt 5.10.1 - not reproducible
Linux, Ubuntu 16.04, GCC 5.4.0, Qt 5.10.1 (compiled by myself) - not reproducible
ToolButton not always repainted (or partially repainted) after icon change. See attached screenshots (worst cases, in other bad cases icon just not changed).
Bug is unstable, minimal app with pretty good reproducible rate is attached. Few notes:
- bug disappear after removing any widget from layout
- higher reproducibility observed when ComboBox is present on the form
- form layoutSizeConstraint must be set to SetFixedSize
- not reproducible with horizontal layout
calling toolbutton->repaint() right after toolbutton->setIcon() resolves the issue. calling toolbutton->update() has no effect (bug is reproducible)