本页内容

Utils::Environment Class

class Utils::Environment

Environment 类用于设置Qt Creator 的系统环境。更多内容...

Header: #include <Environment>

静态公共成员

const Utils::Environment &originalSystemEnvironment()
Utils::Environment systemEnvironment()

详细说明

成员函数文档

[static] const Utils::Environment &Environment::originalSystemEnvironment()

恢复Qt Creator 的原始系统环境。

这是Qt Creator 启动时所使用的完整、未经修改的环境。请使用此环境来启动与Qt Creator 一同构建、因此具有相同库依赖关系的进程。如果Qt Creator 是通过Squish或Qt Creator 的另一个实例启动的(例如在测试或开发环境中),这一点尤为重要。 对于所有其他进程,请使用systemEnvironment() 或更专业的变体(如构建环境,如适用)。

[static] Utils::Environment Environment::systemEnvironment()

返回Qt Creator 的系统环境。

如果用户在Preferences >Environment >System >Environment 中更改了系统环境,则该环境可能与Qt Creator 启动时的系统环境不同。

另请参阅 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.