Obsolete Members for QProcess
QProcess 클래스의 다음 멤버는 더 이상 사용되지 않습니다. 이들은 이전 소스 코드의 작동을 유지하기 위해 제공됩니다. 새 코드에서는 사용하지 않는 것이 좋습니다.
공용 함수
(deprecated) QStringList | environment() const |
(deprecated) void | setEnvironment(const QStringList &environment) |
멤버 함수 문서
[deprecated]
QStringList QProcess::environment() const
이 함수는 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
QProcess 이 자식 프로세스에 전달할 환경을 반환하거나 setEnvironment()를 사용하여 설정된 환경이 없는 경우 빈 QStringList 을 반환합니다. 환경이 설정되지 않은 경우 호출하는 프로세스의 환경이 사용됩니다.
processEnvironment(), setEnvironment() 및 systemEnvironment()도 참조하세요 .
[deprecated]
void QProcess::setEnvironment(const QStringList &environment)
이 함수는 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
QProcess 이 하위 프로세스에 전달할 환경을 설정합니다. 매개변수 environment 는 키=값 쌍의 목록입니다.
예를 들어 다음 코드는 환경 변수 TMPDIR
를 추가합니다:
QProcess process; QStringList env = QProcess::systemEnvironment(); env << "TMPDIR=C:\\MyApp\\temp"; // Add an environment variable process.setEnvironment(env); process.start("myapp");
참고: 이 함수는 setProcessEnvironment() 함수보다 효율성이 떨어집니다.
environment(), setProcessEnvironment() 및 systemEnvironment()도 참조하세요 .
© 2025 The Qt Company Ltd. 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.