QT += core gui sql network greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++11 # The following define makes your compiler emit warnings if you use # any Qt feature that has been marked deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ chatinterface.cpp \ main.cpp \ myapp.cpp \ myenroll.cpp \ mylogin.cpp \ sqoperator.cpp \ tips.cpp HEADERS += \ chatinterface.h \ myapp.h \ myenroll.h \ mylogin.h \ sqoperator.h \ tips.h # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target RESOURCES += \ mysrc.qrc \ mysrc.qrc \ mysrc.qrc \ mysrc.qrc \ mysrc.qrc DISTFILES += \解释qt的每行工程文件
时间: 2024-02-14 16:14:19 浏览: 267
win10+Qt5.12.12+VS2019_x64编译mysql8.0生成的驱动插件
5星 · 资源好评率100%
这是一个Qt工程文件,包含以下内容:
1. `QT += core gui sql network`:指定需要使用的Qt模块,包括核心、GUI、SQL和网络模块。
2. `greaterThan(QT_MAJOR_VERSION, 4): QT += widgets`:如果Qt的主版本号大于4,则添加widgets模块。
3. `CONFIG += c++11`:使用C++11标准编译工程。
4. `DEFINES += QT_DEPRECATED_WARNINGS`:定义QT_DEPRECATED_WARNINGS,使编译器在使用已被标记为已弃用的Qt特性时发出警告。
5. `SOURCES`和`HEADERS`:指定源文件和头文件,包括chatinterface.cpp、main.cpp、myapp.cpp、myenroll.cpp、mylogin.cpp、sqoperator.cpp、tips.cpp、chatinterface.h、myapp.h、myenroll.h、mylogin.h、sqoperator.h和tips.h。
6. `qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target`:为不同的部署平台指定安装路径。
7. `RESOURCES`:指定资源文件,包括mysrc.qrc。
8. `DISTFILES`:指定分发的文件。
阅读全文