예제 #1
0
파일: main.cpp 프로젝트: o2gy84/makaroni
int main(int argc, char** argv)
{
    Q_INIT_RESOURCE(makaron);

    QApplication app(argc, argv);

    QIcon icon(":/images/makaron.jpg");

    app.setWindowIcon(icon);

    //QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
    //QTextCodec *codec = QTextCodec::codecForName("cp1251");
    //QTextCodec::setCodecForCStrings(codec);
    //QTextCodec::setCodecForTr(codec);

    MainWidget mw;
    mw.setWindowTitle("VerticalPermutations");

    QSize size;
    size.setWidth(1000);
    size.setHeight(300);



    mw.setMinimumSize(size);
    //mw.setMaximumSize(size);

    mw.show();


    return app.exec();
}
예제 #2
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

#if QT_VERSION < 0x050000
    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
#endif

    //QTranslator qtTranslator;
    //qtTranslator.load("qt_ru", QLibraryInfo::location(QLibraryInfo::TranslationsPath));
    //app.installTranslator(&qtTranslator);

    MainWidget w;
    w.setMinimumSize(w.sizeHint());
    w.show();

    return app.exec();
}