CONFIG += release
#ifndef MAINWINDOW_H#define MAINWINDOW_H#include <QtGui>class MainWindow : public QMainWindow{ Q_OBJECTpublic: MainWindow(QWidget *parent = 0); ~MainWindow();private:};#endif // MAINWINDOW_H
#include "mainwindow.h"MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent){ QLabel * imageFooter = new QLabel(this); QImage image("d:/varejki.jpg"); imageFooter->setPixmap(QPixmap::fromImage(image)); imageFooter->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); imageFooter->setScaledContents(true);}MainWindow::~MainWindow(){}