Change the default icon size
-
I was wondering how can I change the default icon size of my widgets such as
QPushButton
and so on?
I tried to create a custom proxy style like this but it didn't work:int IconProxyStyle::pixelMetric(QStyle::PixelMetric metric, const QStyleOption *option, const QWidget *widget) const { switch (metric) { case QStyle::PM_SmallIconSize: return 30; break; default: return QProxyStyle::pixelMetric(metric, option, widget); break; } }
-
Hi
Just as a note.
You can also in Designer, set the icon size on a button and drag it
to the left side widget list to have a template with other standard values than normally.