Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Merging multiple Qt projects into one?
Forum Updated to NodeBB v4.3 + New Features

Merging multiple Qt projects into one?

Scheduled Pinned Locked Moved Brainstorm
2 Posts 2 Posters 3.2k 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.
  • D Offline
    D Offline
    darko1
    wrote on last edited by
    #1

    Hi,

    Since I could not find some concrete tutorial on this, I will assume that you won't hate me for asking this :)

    I'm doing a project that requires 11 windows and was at first (mis)instructed not to use QMainWindow, but QDialog.
    Anyway, with all that done, i ended up with 11 separate .pro files of QDialogs completely finished and was later instructed to have all the QDialogs in one QMainWindow. So my question is: Is it possible to create an new QMainWindow .pro file and to somehow include or merge( forgive my terminology) all those 11 .pro's into one QMainWindow .pro without having to do the code once again?

    Cheers

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      You need to create a "subdir":http://qt-project.org/doc/qt-5/qmake-variable-reference.html#subdirs "project":http://qt-project.org/doc/qt-5/qmake-variable-reference.html#template
      @
      TEMPLATE = subdirs

      SUBDIRS =
      MainWindowDir
      Dialog1Dir
      Dialog2Dir
      ...
      Dialog11Dir

      if there is a dependency between subproject then

      CONFIG += ordered
      @

      Put your current .pro files in the corresponding subdirs (MainWindowDir, Dialog1Dir, etc)

      QtCreator has "New project" wizard to create a "Subdir Project" in the "Other Project" list.

      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