Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qprocess_darwin.mm
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <private/qprocess_p.h>
5
6#import <Foundation/Foundation.h>
7
9
11{
12 __block QProcessEnvironment env;
13 [[[NSProcessInfo processInfo] environment]
14 enumerateKeysAndObjectsUsingBlock:^(NSString *name, NSString *value, BOOL *__unused stop) {
15 env.d->vars.insert(
16 QProcessEnvironmentPrivate::Key(QString::fromNSString(name).toLocal8Bit()),
17 QProcessEnvironmentPrivate::Value(QString::fromNSString(value).toLocal8Bit()));
18 }];
19 return env;
20}
21
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
Definition qprocess.h:32
static QProcessEnvironment systemEnvironment()
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint name
static char * toLocal8Bit(char *out, QStringView in, QStringConverter::State *state)