I connect to the project (the goal is an executable file) another project (also an executable, that is, not a library) as a subproject. Here is a fragment of .pro:
include(adscreen/adscreen.pri) (The subproject directory in the adscreen subdirectory of the main project directory.)
Content adscreen.pri:
TEMPLATE = app QT += qml quick CONFIG += c++11 SOURCES += $$PWD/main.cpp RESOURCES += $$PWD/qml.qrc # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = # Default rules for deployment. include(deployment.pri) That is, only added $$PWD before the file names, the only difference from the previous adscreen.pri
But the main function should be both there and there (I want to run a screen with advertising films on a system without a window manager, that is, a screensaver type), can only library subprojects be connected?