The establishment of sub-QT file (pri)

QT in doing the project and sometimes there will be many different types of files, if these files together would show their chaos, we can classify files folder, that would be more organized.

1. Create a new folder under the project folder and add text document in the folder will suffix to .pri

 

 2. Add the code in the pri file:

INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD

3. Add the code in the project file (pro):

INCLUDEPATH += $$PWD/include
include(temp/temp.pri)

 

 Note that the parentheses are the name of the folder and file names pri

Click Save to see their own files

Guess you like

Origin www.cnblogs.com/fanhua666/p/12080611.html