I want to implement a Qpushbutton like in the image below. I don't want it to be done in widget.ui but rather code it. How can I do it in stylesheet?
QPushButton *settings=new QpushButton("Settings", this);
QString css= QString("qproperty-icon:url(:/settings.bmp;");
settings->setStyleSheet(css);
And i want the image on top of the text as below- Button image example
Tried changing stylesheet options but not successful.