Rhian
3rd July 2015, 14:57
I wanted to use a jpg as a pushbutton. However, the picture is always quadrangular.
Is it possible to customize the size and make it rectengular?
ui.pushButton->setIcon(QIcon(QPixmap("pic.jpg")));
This only makes the icon smaller:
ui.pushButton->setIconSize(QSize(100, 250));
Thanks for help.
Is it possible to customize the size and make it rectengular?
ui.pushButton->setIcon(QIcon(QPixmap("pic.jpg")));
This only makes the icon smaller:
ui.pushButton->setIconSize(QSize(100, 250));
Thanks for help.