QIcon icon;
QPixmap pixmap("D:/Download/3a32294d45c3.jpg");
icon.addPixmap(pixmap);
QIcon icon2;
icon2.addPixmap(pixmap,QIcon::Active);
icon2.addPixmap(pixmap,QIcon::Disabled);
ui->pushButton->setIcon(icon);
ui->pushButton_2->setIcon(icon2);
ui->pushButton->setIconSize(QSize(100, 100));
ui->pushButton_2->setIconSize(QSize(100, 100));
ui->pushButton->setEnabled(false);
ui->pushButton_2->setEnabled(false);