Unsolved How can i change the size of my icon?
-
Hi, i'm using qt5.5 on my computer.
This is my user interface here.
http://imgur.com/wA4spzBHow can i change the size which i marked it in the picture?
Please Help!
-
@victor-wang
Are you using a stylesheet now?
If not you can apply a custom QProxyStyle to your tab-bar widget:class MyProxyStyle : public QProxyStyle { public: .... virtual int pixelMetric(QStyle::PixelMetric metric, const QStyleOption * option = 0, const QWidget * widget = 0) const { if( metric == QStyle::PM_TabBarScrollButtonWidth ) return 30; else return QProxyStyle::pixelMetricmetric, option, widget); } };
-
@raven-worx
But i am using stylesheet.
Is there any way to change the size of icon if i am using stylesheet? -
@victor-wang
Try:QTabBar::scroller { /* the width of the scroll buttons */ width: 20px; }