Daniel Santos
Daniel Santos

Reputation: 15989

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.

Upvotes: 7

Views: 9815

Answers (2)

Shaiful Islam
Shaiful Islam

Reputation: 442

You could do:

qproperty-icon: url(":/img/favourit.png");
qproperty-iconSize: 14px;

Upvotes: 0

Daniel Santos
Daniel Santos

Reputation: 15989

Use the following code in stylesheet:

qproperty-iconSize: 24px;

Upvotes: 18

Related Questions