Search code examples
c++qtstylesheet

How to change QPushButton icon size using stylesheets in Qt app


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.


Solution

  • Use the following code in stylesheet:

    qproperty-iconSize: 24px;