Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a folder or a subdirectory for a project in QtCreator? [duplicate]

Tags:

qt

qt-creator

I want to create subdirectories and folders to organise my code in Qt.

I tried to manually create the directory in my shell / explorer, but Qt does not recognize it.

like image 230
Erowlin Avatar asked Jul 25 '14 16:07

Erowlin


1 Answers

Prior to QT Creator 3.1.x, you can right-click on your project -> "add new..." and change the path to the folder you want.

Qt add new...

Be careful the folder must exist, Qt will not create it for you.

Add a new class and change the default folder Qt

Qt takes care of the path in your .pro file.

Qt takes care of the path in your .pro file

Qt takes care of the path in your .pro file

That's it !

like image 150
Erowlin Avatar answered Sep 30 '22 09:09

Erowlin