I was wondering how to use the QT Project in another in QTCreator. I created a subdirs testing project with this hierarchy:
MainProject MainProject.pro ConsoleSubProject ConsoleSubProject.pro main.cpp firstclass.hpp firstclass.cpp GuiSubProject GuiSubProject.pro main.cpp mainwindow.hpp mainwindow.cpp
I would like to use the "firstclass" class (ConsoleSubProject) in GuiSubProject. For this, I added this line to GuiSubProject.pro:
include(../ConsoleSubProject/ConsoleSubProject.pro)
When I tried to build the project, it gave me errors:
MainProject/GuiSubProject/mainwindow.hpp:4: error: QMainWindow: No such file or directory
If you have an idea on how I can use the project class in another?
Hi
source share