I would specifically like to get the active on/off name of the icon for the qPushButton. I tried to log first the icon name like on my code but the output was always empty even if I tried to programmatically make an icon, any idea how to solve this?
Here's my code for just trying to log the icon name:
qDebug() << "icon name " << ui->btnWestern1_2->icon().name(); //output: empty string
Just to verify my objective is to get the active on/off name not just the icon name but nothing works for me.
I'm using Qt 5.2.1