Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If you need to get paths in cpp, then like this:
pro: DEFINES += MYVAR='"\\\"Hello world\\\""'
cpp: qDebug().noquote() << MYVAR;
And if only in pro files of other projects, then you can create a pri file with all variables, and include it via include(...pri) in each pro file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question