Utils::Environment Class

class Utils::Environment

The 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().

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.