I want to set an image on QPushButton, and the size of QPushButton should depend on the size of the image. I am able to do this when using QL
QPushButton
QL
QPushButton *button = new QPushButton; button->setIcon(QIcon(":/icons/...")); button->setIconSize(QSize(65, 65));