Important: Please read the Qt Code of Conduct -

Qt Development Folder Structure

  • Hello,

    I am working on creating a folder structure for my project. I want to make each feature of UI as modules. Example: If I have a dialog that would popup when a button is clicked, that dialog class goes into different folder and so on.

    (I wish I had an option to attach the image, to attach the screenshot of what I think)


    In the pro file, I want to link all the modules so that Makefile can build the complete UIApplication.

    And also, in the pro file, I want to keep up some folder structure for better exploration of source code.

    Can you please help me out in this case?

    And also, if you can share some sample applications where the folder structure is maintained, it will be great.

    Thank you,

  • Lifetime Qt Champion


    Looks like you are looking for something similar to Qt's own folder structure, no ?

  • @SGaist Yes, you are right Sam. Almost close to that. I had a look at it and got this idea. I also had a look at qwebservice-qwebservice project that you have created (I don't remember from where I got it, but I always refer to that).

    I would like to more opinions and more examples to understand better.

    Also, I would like to know about .pri files and linking them in .pro file. I am experiencing it new.


  • Lifetime Qt Champion

    Using pri files is as simple as:


    It's nothing more than a pro file that you will only include

  • @SGaist Thanks Sam! I understand.

Log in to reply