Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Using .pro variables in .cpp
ivanicy last edited by
I want to save a variable in .pro file and then, use it in a class. How can I do it?
Thank you very much!
easiest way is probably to use DEFINES (preprocessor)
Look here ( to expand on @raven-worx answer)
patrik08 last edited by
Other elegant way is a class name "Config"
Wo write setting direct to ini from OS.. I saw very well this class work on all mobile device & desktop mac window linux ... I was surprised .. waht this smal box can do ...