1 Star 0 Fork 28

kimihuang001/JanQuick_Eui

forked from long123963/JanQuick_Eui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.cpp 1009 Bytes
一键复制 编辑 原始数据 按行查看 历史
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <EControl/general/EClipBoard.h>
#include <EControl/general/MyColor.h>
#include <EControl/general/MyFont.h>
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.addImportPath(QStringLiteral("qrc:/"));
//注册字体单例
//字体图标查询网址 https://fontawesome.com/v5/search
MyFont::getInstance();
//注册颜色单例
MyColor::getInstance();
//注册剪切板类
qmlRegisterType<EClipBoard>("EUIpackage",1,0,"EClipboard");
const QUrl url(QStringLiteral("qrc:/main.qml"));
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
&app, [url](QObject *obj, const QUrl &objUrl) {
if (!obj && url == objUrl)
QCoreApplication::exit(-1);
}, Qt::QueuedConnection);
engine.load(url);
return app.exec();
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
QML
1
https://gitee.com/kimihuang001/jan-quick_-eui.git
git@gitee.com:kimihuang001/jan-quick_-eui.git
kimihuang001
jan-quick_-eui
JanQuick_Eui
master

搜索帮助