Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED] QPushbutton toggle appears deactivated when focus shifts
planarian last edited by
I have a couple widgets, one of which has a QPushbutton toggle. When I click, it depresses, but when I select one of the other widgets it pops back up. The effect is only cosmetic, but a user would find it confusing. Is this a bug? Is there a workaround?
[Edit: It turns out I was using the setDown method when I ought to have been using setChecked. I hadn't realized that the "checked" flag is for all toggles, not just check boxes.]