相关资料:
https://blog.csdn.net/WPwalter/article/details/103268596 函数说明
https://download.csdn.net/download/qq_40110291/11501767 C++版本代码包下载
https://download.csdn.net/download/zhujianqiangqq/13092641 QT版本代码包下载
.pro
1 QT += core gui 2 3 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 4 5 CONFIG += c++11 6 7 # The following define makes your compiler emit warnings if you use 8 # any Qt feature that has been marked deprecated (the exact warnings 9 # depend on your compiler). Please consult the documentation of the 10 # deprecated API in order to know how to port your code away from it. 11 DEFINES += QT_DEPRECATED_WARNINGS 12 13 # You can also make your code fail to compile if it uses deprecated APIs. 14 # In order to do so, uncomment the following line. 15 # You can also select to disable deprecated APIs only up to a certain version of Qt. 16 #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 17 18 SOURCES += \ 19 aero.cpp \ 20 main.cpp \ 21 mainframe.cpp 22 23 HEADERS += \ 24 WindowCompositionAttribute.h \ 25 aero.h \ 26 mainframe.h 27 28 FORMS += \ 29 aero.ui \ 30 mainframe.ui \ 31 mainwindow.ui 32 33 # Default rules for deployment. 34 qnx: target.path = /tmp/$${TARGET}/bin 35 else: unix:!android: target.path = /opt/$${TARGET}/bin 36 !isEmpty(target.path): INSTALLS += target 37 38 RESOURCES +=