[Solved] update checkable QPushButton without toggle event
-
Hi all,
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?
-
Just add a "solved" tag. Others prepend a [solved] before the title of the thread.