I have a two state QPushButton. I want to associate an icon to each state.
It is like Play|Pause buttons in music players.
To do so, I would like to get the current icon name in order to know what the next icon to set will be.
I could subclass QPushButton but is it worth it?
QPushButton::ischecked()
– nurettinmyButton->setStyleSheet(":checked {image: url(:/img/pause.png);}");
but it doesn't work. – Maxbester