Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Project Design Help
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Project Design Help

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.0k Views 1 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.
  • V Offline
    V Offline
    vezprog
    wrote on last edited by
    #1

    Hi,

    I am currently about to start a fairly large project in Qt that will contain multiple executable's communicating with one another.

    My first though in how to design the project is to create a sub-directory project in Qt...That way, when I build the project, I can compile the main uppermost project, which in turn will compile all of the other sub projects.

    Also, I would like to share classes between these projects so there is no source duplication's...Therefore, there is going to some "shared area" for all of the projects to look for utility classes to use. For example, If I create a custom dialog box, I would like to share that dialog class between projects.

    Is this the best way to design this project in QtCreator? Is there a more elegant way with the creator achieve this?

    Thanks!

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

      Hi,

      You can build different type of template when using subprojects thus you can make a library with all the common code and link your various executable to that library

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

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vezprog
        wrote on last edited by
        #3

        Thank you very much for the tip. The DLL sub projects are working great. It definitely cleans up the project interface quite a bit when you have more than 1 sub project.

        Also using .pri files for common Qmake commands cleaned up the build quite a bit.

        Thank you again!

        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