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?

Qt Code:
  1. ui.pushButton->setIcon(QIcon(QPixmap("pic.jpg")));
To copy to clipboard, switch view to plain text mode 

This only makes the icon smaller:
Qt Code:
  1. ui.pushButton->setIconSize(QSize(100, 250));
To copy to clipboard, switch view to plain text mode 

Thanks for help.