How do I tell Qt Creator which subproject is the "main" one?
-
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?
-
Under the Projects tab, go to Run Settings, and you should be able to select it there.
-
Five years from the initial post, there isn't a quicker way to achieve it.
-
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. -
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.
-
Oh, in here?
-
Yes, that one. The content will changed depending on your project.