Embed a project into another.
General and Desktop
4
Posts
2
Posters
1.2k
Views
1
Watching
-
Yes. Just include the header and add it to your QLayout in main. You can also use qmake subdirs template.
-
There is no standard way, as such. Depends on what you want to achieve and how you want to achieve it.
If what you want is to use a widget created in project A inside project B, then you need to add it to project B (add files to .pro, include headers in source code), instantiate the widget and add it to layout.
If you want to have 2 projects grouped together (for example, a library and dependent application), you can use qmake subdirs template and specify path to subdirs in main .pro file.