2012-01-23

New Qt4 project settings

pro.conf
CONFIG += release
CONFIG += crypto
TARGET = mybinary
QT += sql webkit network script
DESTDIR = build
MOC_DIR = build
RCC_DIR = build
OBJECTS_DIR = build


main.cpp
#include <qapplication>
#include "MyForm.h"

int main(int argc, char **argv) {
    QApplication a(argc, argv);
    a.setOrganizationName("myOrg");
    a.setOrganizationDomain("my.net");
    a.setApplicationName("MyApp");
    a.setApplicationVersion("1.0");
    MyForm w;
    w.show();
    return a.exec();
}

No comments: