Files

18 lines
567 B
C++
Raw Permalink Normal View History

2026-02-25 23:01:42 +08:00
#include "QMainwindow.h"
#include <QtWidgets/QApplication>
#include "BZStruct.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setWindowIcon(QIcon(":/QMainwindow/main.ico"));
QFile styleFile("D:\\Projects\\Trade\\QTradeProgram\\QMainwindow\\styles\\dark_theme.qss");
if (styleFile.open(QIODevice::ReadOnly | QIODevice::Text))
{
}
qRegisterMetaType<BigOrderInfo>("BigOrderInfo");
qRegisterMetaType<BigOrderInfo>("BigOrderInfo&");
QMainwindow w;
w.setWindowIcon(QIcon(":/QMainwindow/main.ico"));
w.show();
return a.exec();
}