Extending Qt Creator Manual | Environment

Extending Qt Creator Manual 4.7.0

# Environment Class

(Utils::Environment)

- List of all members, including inherited members

## Public Types

typedef | const_iterator

## Public Functions

| Environment(Utils::OsType osType = HostOsInfo::hostOs())
| Environment(const QStringList &env, Utils::OsType osType = HostOsInfo::hostOs())
QStringList | appendExeExtensions(const QString &executable) const
void | appendOrSet(const QString &key, const QString &value, const QString &sep = QString())
void | appendOrSetPath(const QString &value)
void | clear()
Environment::const_iterator | constBegin() const
Environment::const_iterator | constEnd() const
Environment::const_iterator | constFind(const QString &name) const
QList<Utils::EnvironmentItem> | diff(const Utils::Environment &other, bool checkAppendPrepend = false) const
QString | expandVariables(const QString &input) const
QStringList | expandVariables(const QStringList &input) const
bool | hasKey(const QString &key) const
bool | isSameExecutable(const QString &exe1, const QString &exe2) const
QString | key(Environment::const_iterator it) const
void | modify(const QList<Utils::EnvironmentItem> &list)
Utils::OsType | osType() const
int | path() const
void | prependOrSet(const QString &key, const QString &value, const QString &sep = QString())
void | prependOrSetLibrarySearchPath(const QString &value)
void | prependOrSetLibrarySearchPaths(const QStringList &values)
void | prependOrSetPath(const QString &value)
Utils::FileName | searchInPath(const QString &executable, const int &additionalDirs = ..., const int &func = ...) const
void | set(const QString &key, const QString &value)
int | size() const
QProcessEnvironment | toProcessEnvironment() const
QStringList | toStringList() const
void | unset(const QString &key)
QString | userName() const
QString | value(const QString &key) const
QString | value(Environment::const_iterator it) const
bool | operator!=(const Utils::Environment &other) const
bool | operator==(const Utils::Environment &other) const

## Static Public Members

void | setupEnglishOutput(Utils::Environment *environment)
void | setupEnglishOutput(QProcessEnvironment *environment)
void | setupEnglishOutput(QStringList *environment)
Utils::Environment | systemEnvironment()

## Member Type Documentation

### typedef Environment::const_iterator

## Member Function Documentation

### Environment::Environment(Utils::OsType osType = HostOsInfo::hostOs())

Default constructs an instance of Environment.

### Environment::Environment(const QStringList &env, Utils::OsType osType = HostOsInfo::hostOs())

Default constructs an instance of Environment.

### QStringList Environment::appendExeExtensions(const QString &executable) const

### void Environment::appendOrSet(const QString &key, const QString &value, const QString &sep = QString())

### void Environment::appendOrSetPath(const QString &value)

### void Environment::clear()

### Environment::const_iterator Environment::constBegin() const

### Environment::const_iterator Environment::constEnd() const

### Environment::const_iterator Environment::constFind(const QString &name) const

### QList<Utils::EnvironmentItem> Environment::diff(const Utils::Environment &other, bool checkAppendPrepend = false) const

### QString Environment::expandVariables(const QString &input) const

### QStringList Environment::expandVariables(const QStringList &input) const

### bool Environment::hasKey(const QString &key) const

### bool Environment::isSameExecutable(const QString &exe1, const QString &exe2) const

### QString Environment::key(Environment::const_iterator it) const

### void Environment::modify(const QList<Utils::EnvironmentItem> &list)

### Utils::OsType Environment::osType() const

### int Environment::path() const

### void Environment::prependOrSet(const QString &key, const QString &value, const QString &sep = QString())

### void Environment::prependOrSetLibrarySearchPath(const QString &value)

### void Environment::prependOrSetLibrarySearchPaths(const QStringList &values)

### void Environment::prependOrSetPath(const QString &value)

### Utils::FileName Environment::searchInPath(const QString &executable, const int &additionalDirs = ..., const int &func = ...) const

### void Environment::set(const QString &key, const QString &value)

### `[static]` void Environment::setupEnglishOutput(Utils::Environment *environment)

### `[static]` void Environment::setupEnglishOutput(QProcessEnvironment *environment)

### `[static]` void Environment::setupEnglishOutput(QStringList *environment)

### int Environment::size() const

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

### QProcessEnvironment Environment::toProcessEnvironment() const

### QStringList Environment::toStringList() const

### void Environment::unset(const QString &key)

### QString Environment::userName() const

### QString Environment::value(const QString &key) const

### QString Environment::value(Environment::const_iterator it) const

### bool Environment::operator!=(const Utils::Environment &other) const

### bool Environment::operator==(const Utils::Environment &other) const