mirror of
https://gitee.com/Zhaoxin59/my-chat_-client.git
synced 2026-02-13 16:41:48 +08:00
23 lines
468 B
C++
23 lines
468 B
C++
#include "mainwidget.h"
|
|
#include <QApplication>
|
|
#include <QStyleFactory>
|
|
|
|
#include "model/data.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
qputenv("QT_QPA_PLATFORM", "windows:darkmode=0");
|
|
|
|
LOG() << "Hello";
|
|
|
|
QPalette palette;
|
|
palette.setColor(QPalette::WindowText, Qt::black);// 窗口文字颜色
|
|
QApplication::setPalette(palette);
|
|
|
|
MainWidget* w = MainWidget::getInstance();
|
|
w->show();
|
|
return a.exec();
|
|
}
|