How can I quickly import files from another project??
-
This post is deleted! -
I'm sorry:
QT = core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
SOURCES += ~/Library/Lib/mathfuncslib.cpp
INCLUDES += ~/Library/Lib/mathfuncslib.h
SOURCES +=
main.cppBut I get the same result..
-
I'd rather go with an absolute path
-
Unfortunately it's the same.
-
Which version of Qt are you using ?
-
5.4 version
-
Did you re-run qmake ?
-
Yes I did!!
-
Ok! The path was wrong!
Now, I have to include the file in the main also? If yes, I have to use the absolute path? -
You can use them as normal. You need to update
INCLUDEPATH
to also contain the folder where the headers are located.