1

Questions:

Address the issue of reading a value from a text file using qmake.

Let's say:

NAME = $$cat(../name.txt)
message($$NAME)

Code above read content of name.txt and put it on NAME, then NAME gets printed by message()function.

I'm thinking in how to access NAME from Qt (C++) code, i.e. in main.cpp. Is that possible? And do something like:

qDebug() << NAME;
Community
  • 1
  • 1
KcFnMi
  • 5,516
  • 10
  • 62
  • 136

0 Answers0