1 Star 0 Fork 0

很随意丶丶 / APCRun

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.cpp 758 Bytes
一键复制 编辑 原始数据 按行查看 历史
很随意丶丶 提交于 2020-01-07 14:48 . first commit
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QApplication>
#include <protocol/mqttprotocol.h>
int main(int argc, char *argv[])
{
//qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
qmlRegisterType<MQTTProtocol>("MQTTProtocol", 1, 0, "MQTTProtocol");
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
qSetMessagePattern("[%{time h:mm:ss.zzz} %{if-debug}Debug%{endif}%{if-warning}Waring%{endif}%{if-critical}Critical%{endif}%{if-fatal}Fatal%{endif}] %{file}:%{line} : %{message}");
return app.exec();
}
C++
1
https://gitee.com/zhimingchang_admin/APCRun.git
git@gitee.com:zhimingchang_admin/APCRun.git
zhimingchang_admin
APCRun
APCRun
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891