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. Setup certain startup project
Forum Updated to NodeBB v4.3 + New Features

Setup certain startup project

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 3 Posters 1.0k Views
  • 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.
  • F Offline
    F Offline
    Flaviu 0
    wrote on 22 Dec 2020, 20:23 last edited by
    #1

    I have successfully compiled a github project, and I noticed that has few sub-projects:

    Project1-->
    f693031f-98a0-4ac6-bb75-5fb70de2d65f-image.png

    and Project 2:

    f8069425-0457-4383-8a7e-e9b1a2c6ba5b-image.png

    but when I try to Debug this project, my Qt Creator Debugger is always go on Project1 main.cpp, and I wish to run Debugger on Project2 main.cpp/main_window.cpp/and so on.

    My question is: how can I setup the startup project on Project2 ? I didn't saw such a option on project settings ...

    Or, maybe I didn't getting something right. Didn't I ?

    J 1 Reply Last reply 23 Dec 2020, 08:24
    0
    • F Flaviu 0
      22 Dec 2020, 20:23

      I have successfully compiled a github project, and I noticed that has few sub-projects:

      Project1-->
      f693031f-98a0-4ac6-bb75-5fb70de2d65f-image.png

      and Project 2:

      f8069425-0457-4383-8a7e-e9b1a2c6ba5b-image.png

      but when I try to Debug this project, my Qt Creator Debugger is always go on Project1 main.cpp, and I wish to run Debugger on Project2 main.cpp/main_window.cpp/and so on.

      My question is: how can I setup the startup project on Project2 ? I didn't saw such a option on project settings ...

      Or, maybe I didn't getting something right. Didn't I ?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 23 Dec 2020, 08:24 last edited by
      #2

      @Flaviu-0 In QtCreator on the left side switch to Project 2

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • F Offline
        F Offline
        Flaviu 0
        wrote on 23 Dec 2020, 11:12 last edited by
        #3

        But is just sub-projects, and I don't know if I can do what you said.
        5cd2dedc-b31a-4b56-ad59-1722618f5e68-image.png

        J 1 Reply Last reply 23 Dec 2020, 11:34
        0
        • F Flaviu 0
          23 Dec 2020, 11:12

          But is just sub-projects, and I don't know if I can do what you said.
          5cd2dedc-b31a-4b56-ad59-1722618f5e68-image.png

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 23 Dec 2020, 11:34 last edited by
          #4

          @Flaviu-0 Well, an executable can only have one main function. Since I don't know much about your project I can't tell much. I guess the main from Project 2 is not built, or it is built but as a different executable.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Flaviu 0
            wrote on 23 Dec 2020, 12:32 last edited by
            #5

            Thank you a lot for your words. In the ending I have found how could be done, and I write here for someone who need: In left side down, there is a big button above Debug button. From that option I choose the right startup project.

            2 1 Reply Last reply 8 Aug 2023, 19:24
            1
            • F Flaviu 0
              23 Dec 2020, 12:32

              Thank you a lot for your words. In the ending I have found how could be done, and I write here for someone who need: In left side down, there is a big button above Debug button. From that option I choose the right startup project.

              2 Offline
              2 Offline
              2NinerRomeo
              wrote on 8 Aug 2023, 19:24 last edited by
              #6

              I think the button @Flaviu-0 is talking about has an icon of a monitor on it. On opening it, a two-column menu appears to the right. In the right hand column of this menu under "Run" Is a list of the executable in the project. Each line has a button which which will launch the executable. I was able to choose the startup with a right click on one of these executable, which would highlight that line. With that line highlighted, I could back out and use the debug button, and it would launch the executable which I'd left highlighted.

              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