Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How do I tell Qt Creator which subproject is the "main" one?
Forum Updated to NodeBB v4.3 + New Features

How do I tell Qt Creator which subproject is the "main" one?

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 5 Posters 8.3k Views 3 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.
  • A Offline
    A Offline
    alexbottoni
    wrote on last edited by
    #1

    A few days ago, I wrote a small, experimental application with Qt4.
    Today, I created a new, larger ("subdirs"-based) project and "imported" the older, smaller project into the new one as a subproject.
    The problem is that the older, smaller project still has its main() function (because I still need it for my hacking...) and Qt Creator keeps on launching it instead of the top-level application.

    How can I tell to Qt Creator which one of the subprojects is the "main" one and have to be launched when building/testing the whole application?

    1 Reply Last reply
    1
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      Under the Projects tab, go to Run Settings, and you should be able to select it there.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      3
      • D Offline
        D Offline
        dscyw
        wrote on last edited by
        #3

        Five years from the initial post, there isn't a quicker way to achieve it.

        mrjjM 1 Reply Last reply
        0
        • D dscyw

          Five years from the initial post, there isn't a quicker way to achieve it.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @dscyw

          Well it's not something that comes up often - so a feature
          request might never been made and the developers are focusing on
          issues many people report on or vote on.

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

            Hi,

            Clicking on the "device" icon above the green Run arrow allows you to select what you want to run.

            "device" changing from computer to something else depending on what you are building for.

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

            mrjjM 1 Reply Last reply
            1
            • SGaistS SGaist

              Hi,

              Clicking on the "device" icon above the green Run arrow allows you to select what you want to run.

              "device" changing from computer to something else depending on what you are building for.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Oh, in here?

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

                Yes, that one. The content will changed depending on your project.

                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

                • Login

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