1. 工程文件
QT += core gui serialport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
main.cpp \
laserwindow.cpp
HEADERS += \
laserwindow.h
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
2. 主程序
#include "laserwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc,

订阅专栏 解锁全文
93

被折叠的 条评论
为什么被折叠?



