Qt_GUI_BG_4_8 - 8BitsCoding/RobotMentor GitHub Wiki

Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);

    ui->miniontextLabel->move(100,30);

    //Add an image to the second label
    QPixmap minionPixmap(":/images/minions.png");


    ui->imageLabel->move(0,70);
    ui->imageLabel->setPixmap(minionPixmap.scaled(400,400));
}