File main.cpp of Package package_name

#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QtCore>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    MainWindow w;
    w.show();
    return app.exec();
}