Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change QPushButton icon size using stylesheets in Qt app

Tags:

c++

stylesheet

qt

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.

like image 493
Daniel Santos Avatar asked May 24 '16 12:05

Daniel Santos


1 Answers

Use the following code in stylesheet:

qproperty-iconSize: 24px;

like image 184
Daniel Santos Avatar answered Nov 07 '22 00:11

Daniel Santos