1 Star 0 Fork 83

AceKwei / Qt360-10.0

forked from zhjun5337 / Qt360-10.0 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.cpp 723 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhjun5337 提交于 2014-11-07 23:07 . 添加清理界面
#include "src/test/mainwidget.h"
#include "src/main/mainwindow.h"
#include <QApplication>
#include <QTextCodec>
#include <QFile>
//#define MAIN_TEST
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
#if (QT_VERSION <= QT_VERSION_CHECK(5,0,0))
QTextCodec *codec = QTextCodec::codecForName("UTF-8");
QTextCodec::setCodecForLocale(codec);
QTextCodec::setCodecForCStrings(codec);
QTextCodec::setCodecForTr(codec);
#endif
QFile qss(":/qss/default");
qss.open(QFile::ReadOnly);
qApp->setStyleSheet(qss.readAll());
qss.close();
#ifdef MAIN_TEST
MainWidget w;
w.show();
#else
MainWindow *w = new MainWindow;
w->show();
#endif
return a.exec();
}
1
https://gitee.com/acekwei/Qt360-10.0.git
git@gitee.com:acekwei/Qt360-10.0.git
acekwei
Qt360-10.0
Qt360-10.0
master

搜索帮助