Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Development Folder Structure
Forum Updated to NodeBB v4.3 + New Features

Qt Development Folder Structure

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 1.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kumararajas
    wrote on last edited by kumararajas
    #1

    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)
    Example:

    UIApp
    |>main.cpp
    |>UIApp.pro
    |>>src
    |>>>>module1
    |>>>>>>>>>>>>>>>>a.h
    |>>>>>>>>>>>>>>>>a.cpp
    |>>>>module2
    |>>>>>>>>>>>>>>>>b.h
    |>>>>>>>>>>>>>>>>b.cpp
    |>>>>module3
    |>>>>>>>>>>>>>>>>c.h
    |>>>>>>>>>>>>>>>>c.cpp

    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,
    Kumara

    --Kumar

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

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

        K Offline
        K Offline
        kumararajas
        wrote on last edited by kumararajas
        #3

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

        Thanks,
        Kumara

        --Kumar

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Using pri files is as simple as:

          include(path/to/my/pri_file.pri

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          K 1 Reply Last reply
          0
          • SGaistS SGaist

            Using pri files is as simple as:

            include(path/to/my/pri_file.pri

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

            K Offline
            K Offline
            kumararajas
            wrote on last edited by
            #5

            @SGaist Thanks Sam! I understand.

            --Kumar

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved