Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Setup certain startup project



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


  • 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.
    5cd2dedc-b31a-4b56-ad59-1722618f5e68-image.png


  • 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