Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Question on Source Control Folders



  • Hello everyone, hope all is well.

    Today I wanted to ask a question in regards to using Git with Qt. Currently, I want to have separate folders in the file directory (one for source files, one for header files, etc.). I created a source folder and a header folder just as one would expect.

    However, when I open Qt, the folders "duplicate" inside the Qt Editor. In other words, the Path in the QT creator app would show "Headers/Headers/file.h" while I just want there to be one header folder inside the app ("Headers/file.h"). This problem goes away when there are no folders in the project folder (in the file directory), but I want to be able to use folders in the file directory to make development easier.

    How would I be able to fix this?



  • @WesLow said in Question on Source Control Folders:

    I created a source folder and a header folder just as one would expect.

    When you create a new project in QtCreator it will create Header, Source and UI directories by default.



  • are you using cmake or qmake?



  • @VRonin qmake


Log in to reply