Qt 6.11 is out! See what's new in the release
blog
How can I quickly import files from another project??
General and Desktop
18
Posts
2
Posters
3.3k
Views
2
Watching
-
Hi and welcome to devnet,
What are you using qmake ? cmake ? Do you want to rebuild these files ?
-
Then, the second question: do you want to rebuild these files in your new project ?
-
Then the quick and dirty way to do this is:
SOURCES += /path/to/your/other/project/cpp_file.cpp INCLUDES += /path/to/your/other/project/header_file.h -
Can you show your pro file ?
-
I'd rather go with an absolute path
-
Which version of Qt are you using ?
-
Did you re-run qmake ?
-
You can use them as normal. You need to update
INCLUDEPATHto also contain the folder where the headers are located.