更新代码

This commit is contained in:
feiyangqingyun
2024-03-08 10:42:05 +08:00
parent 8b28eb53f7
commit c35ec2fda1
38 changed files with 748 additions and 285 deletions

View File

@@ -1,28 +1,20 @@
#include "frmmain.h"
#include "appinit.h"
#include "quihelper.h"
#include "qthelper.h"
int main(int argc, char *argv[])
{
QUIHelper::initMain();
QtHelper::initMain();
QApplication a(argc, argv);
AppInit::Instance()->start();
QUIHelper::setFont();
QUIHelper::setCode();
QtHelper::setFont();
QtHelper::setCode();
//加载样式表
QFile file(":/qss/blacksoft.css");
if (file.open(QFile::ReadOnly)) {
QString qss = QLatin1String(file.readAll());
QString paletteColor = qss.mid(20, 7);
qApp->setPalette(QPalette(paletteColor));
qApp->setStyleSheet(qss);
file.close();
}
QtHelper::setStyle(":/qss/blacksoft.css");
frmMain w;
QUIHelper::setFormInCenter(&w);
QtHelper::setFormInCenter(&w);
w.show();
return a.exec();

View File

@@ -13,6 +13,4 @@ RESOURCES += $$PWD/../core_qss/qss.qrc
INCLUDEPATH += $$PWD
INCLUDEPATH += $$PWD/form
include ($$PWD/form/form.pri)
INCLUDEPATH += $$PWD/../core_base
include ($$PWD/../core_base/core_base.pri)
include ($$PWD/../core_helper/core_helper.pri)