Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a subdirectory for a project QtCreator?

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?

like image 278
gruszczy Avatar asked Jul 24 '09 09:07

gruszczy


People also ask

How do I create a subdirectory URL?

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'.

How is a folder related to a 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.


1 Answers

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

like image 173
Nick Avatar answered Sep 29 '22 18:09

Nick