I would like to get the path of the main .pro file. The problem is that I use shadow build so isn't the same dir and can't use QDir::currDir().
Maybe $$_PRO_FILE_PWD_ should do the trick, but how ?
I tried putting this in .pro
debug {
DEFINES += DEBUGGING
DEFINES += "PWD_PRO=$$_PRO_FILE_PWD_"
}
how to read PWD_PRO ? if I do
qDebug() << PWD_PRO;
PWD_PRO is expanded right to directory tree, but the compiler gives errors
There is some method to do this ?
thanks in advance
Bookmarks