Unsolved Qt Creator: default environment variables?
-
I've noticed that Qt Creator lists environment variables that aren't set in the environment (namely, QT_OPENGL). Is it possible to check which env variables are set by Qt Creator and if it's possible to tweak their default values?
-
Hi,
Do you mean at build or at run time ?
-
Hi @SGaist
I assume it's at least at build time. I'm referring to the env variables listed at the end of the "Build Environment" section of a project's build settings.
-
Are you on Windows ?
By the way, which version of Qt Creator ?
-
Hi @SGaist
No, I'm on linux (Ubuntu 16.04) and running Qt Creator 4.7.0.
-
You should start a terminal and from there write
echo $QT
, then use tab to get suggestions on what is available, you'll likely find the same variables you can see in your projects except the QTDIR one which is set by Qt Creator in order to ensure you are using the Qt version you selected during project creation/configuration.