Utils::Environment Class
class Utils::EnvironmentThe Environment class sets Qt Creator's system environment. More...
Header: | #include <Environment> |
Static Public Members
const Utils::Environment & | originalSystemEnvironment() |
Utils::Environment | systemEnvironment() |
Detailed Description
Member Function Documentation
[static]
const Utils::Environment &Environment::originalSystemEnvironment()
Returns Qt Creator's original system environment.
This is the full, unmodified environment that Qt Creator was started with. Use this environment to start processes that are built alongside Qt Creator and thus have the same library dependencies. This is particularly relevant if Qt Creator was started via Squish or another instance of Qt Creator, i.e. in testing or development contexts. For all other processes, use systemEnvironment() or more specialized variants such as the build environment, if applicable.
[static]
Utils::Environment Environment::systemEnvironment()
Returns Qt Creator's system environment.
This can be different from the system environment that Qt Creator started in if the user changed it in Preferences > Environment > System > Environment.
See also originalSystemEnvironment().