Environment Class | Extending Qt Creator Manual

Extending Qt Creator Manual | Environment

Extending Qt Creator Manual 4.6.0

# Environment Class

(Utils::Environment)

- List of all members, including inherited members

## Public Types

typedef | const_iterator

## Public Functions

| Environment(OsType osType = HostOsInfo::hostOs())
| Environment(const QStringList &env, 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<EnvironmentItem> | diff(const 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<EnvironmentItem> &list)
OsType | osType() const
FileNameList | 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)
FileName | searchInPath(const QString &executable, const FileNameList &additionalDirs = FileNameList(), const PathFilter &func = PathFilter()) 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 Environment &other) const
bool | operator==(const Environment &other) const

## Static Public Members

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

## Member Type Documentation

### typedef Environment::const_iterator

## Member Function Documentation

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

Default constructs an instance of Environment.

### Environment::Environment(const QStringList &env, 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<EnvironmentItem> Environment::diff(const 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<EnvironmentItem> &list)

### OsType Environment::osType() const

### FileNameList 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)

### FileName Environment::searchInPath(const QString &executable, const FileNameList &additionalDirs = FileNameList(), const PathFilter &func = PathFilter()) const

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

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

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

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

### int Environment::size() const

### `[static]` 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 Environment &other) const

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