I would like to divide my Qt project into several directories because it is growing pretty large. However, when I click on browse in QtCreator, there is no 'Add directory' and no such thing in 'Add new'. Can this be done somehow?
Make a subdirectory in your WWW root dir that can be accessed by the user that your webserver runs under with the name that you want to put after your domain (ex: www.mysite.com/thisisthedirnameyouuse/afile.html ), and put the files in there. Ryan J means 'make a new folder' when he says 'subdirectory'.
Like a subdirectory, a subfolder is any folder that is a child of another folder. In the example below, Fonts and System32 are subfolders of the Windows folder.
One method you could use is to add a project include file for each sub directory.
Qt Creator displays these in the GUI in a nested fashion, and allows you to add files to them.
e.g.
in project.pro
include(folder1/include.pri)
in folder1/include.pri
HEADERS += MyClass.h SOURCES += MyClass.cpp
etc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With