QLabel *labelIcon = new QLabel(this); labelIcon->setPixmap(QPixmap(":/print24.png")); QHBoxLayout *layout = new QHBoxLayout; layout->addWidget(labelIcon); layout->addWidget(new QLabel("Print", this)); ui->pushButton->setLayout(layout);