Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] update checkable QPushButton without toggle event
having a checkable QPushButton (with different On/Off Icons via Designer), I need to update it, triggered by an extra thread, but without producing an toggle event again as it happens with QPushButton::setChecked ...think of a download bar with progress and a Pause/Resume toggle button.
Underlying download may signal new state, I want the button state adapt to like with setChecked, but latter would raise a toggle event, that would be hard to filter from user click onto the button.
Are you aware that you can "block signals":http://doc.trolltech.com/main-snapshot/qobject.html#blockSignals?
You mean QObject::blockSignals()?
no, I wasn't -- cool -- thanks!
hope this works for me, if so, how can I put thread as solved?
Just add a "solved" tag. Others prepend a [solved] before the title of the thread.
found another (cleaner) option: to distinguish between clicked and toggled, former does not react to setChecked()