Important: Please read the Qt Code of Conduct -

Setup certain startup project

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


    and Project 2:


    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 ?

  • Lifetime Qt Champion

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

  • But is just sub-projects, and I don't know if I can do what you said.

  • Lifetime Qt Champion

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

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

Log in to reply