if it is possible for QT to access a variable in a C++ program that is not included in the QTCreator IDE.
Do you have the source code to this C++ program? If you do, you might be able to adapt it so that it runs as part of a Qt GUI-based program. If not, the simplest option for you is probably to just read from the file after the external program has updated it.