C++ – How to change QPushButton icon size using stylesheets in Qt app

cqtstylesheet

Is it possible to set and change the icon size on a QPushButton using stylesheets?
I need this for a qt based template that customers stylize using stylesheets.

Best Answer

Use the following code in stylesheet:

qproperty-iconSize: 24px;