pub unsafe fn q_environment_variable_is_set(var_name: *const c_char) -> bool
Expand description

Returns whether the environment variable varName is set.

Calls C++ function: bool qEnvironmentVariableIsSet(const char* varName).

C++ documentation:

Returns whether the environment variable varName is set.

Equivalent to

!qgetenv(varName).isNull()

except that it's potentially much faster, and can't throw exceptions.

This function was introduced in Qt 5.1.

See also qgetenv() and qEnvironmentVariableIsEmpty().