1 Star 0 Fork 1

hnmrlwy/RobotControl

forked from haodafa/RobotControl 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.cpp 939 Bytes
一键复制 编辑 原始数据 按行查看 历史
haodafa 提交于 2021-09-14 00:36 +08:00 . 增加git管理
#include <QApplication>
#include <QCoreApplication>
#include <QQmlApplicationEngine>
#include <QSplashScreen>
#include "RobotControl.h"
#include "DataBaseManage.h"
#include "BusinessDataBase.h"
#include "BusinessData.h"
#include <QDebug>
int main(int argc, char *argv[])
{
int exitCode = 0; // exit
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, argv);
// 启动动画
QSplashScreen* splash = new QSplashScreen;
splash->setPixmap(QPixmap(":/Item/Robott.png"));
splash->show();
// 初始化数据库
if (BusinessDataBase::getInstance()->initDataBase())
{
RobotControl robotControl;
robotControl.initQmlWidget();
robotControl.createWidget();
robotControl.initWidgetData();
splash->close();
splash->finish(&robotControl);
delete splash;
exitCode = app.exec();
}
return exitCode;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/mrlwy/robot-control.git
git@gitee.com:mrlwy/robot-control.git
mrlwy
robot-control
RobotControl
master

搜索帮助