更新与前板的使用串口连接
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "./Widget/MainWidget.h"
|
||||
#include <QApplication>
|
||||
#include <QItemSelection>
|
||||
#include <QItemSelectionModel>
|
||||
#include <windows.h>
|
||||
#include <iostream>
|
||||
#include <QDebug>
|
||||
@@ -22,6 +24,11 @@ int main(int argc, char* argv[]) {
|
||||
//closeConsole(); // 调用函数关闭控制台窗口
|
||||
//FreeConsole(); // 关闭控制台窗口
|
||||
QApplication app(argc, argv);
|
||||
|
||||
// **注册 QItemSelection 和 SelectionFlags 以支持 QueuedConnection**
|
||||
qRegisterMetaType<QItemSelection>("QItemSelection");
|
||||
qRegisterMetaType<QItemSelectionModel::SelectionFlags>("QItemSelectionModel::SelectionFlags");
|
||||
|
||||
qDebug() << "Current working directory:" << QDir::currentPath();
|
||||
//QIcon appIcon("./app_icon.ico");
|
||||
//app.setWindowIcon(appIcon);
|
||||
|
||||
Reference in New Issue
Block a user