Obsolete Members for QProcess
QProcess 클래스의 다음 메서드들은 더 이상 사용되지 않습니다. 이 메서드들은 기존 소스 코드가 계속 작동하도록 하기 위해 제공됩니다. 새로운 코드에서는 이 메서드들을 사용하지 않는 것을 강력히 권장합니다.
공개 함수
(deprecated in 4.6) QStringList | environment() const |
(deprecated in 4.6) void | setEnvironment(const QStringList &environment) |
멤버 함수 문서
[deprecated in 4.6] QStringList QProcess::environment() const
이 함수는 4.6 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것이 좋습니다.
QProcess 가 자식 프로세스에 전달할 환경을 반환하거나, setEnvironment()를 사용하여 환경이 설정되지 않은 경우 빈 QStringList 를 반환합니다. 환경이 설정되지 않은 경우 호출 프로세스의 환경이 사용됩니다.
processEnvironment(), setEnvironment(), systemEnvironment()도 참조하십시오 .
[deprecated in 4.6] void QProcess::setEnvironment(const QStringList &environment)
이 함수는 4.6 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
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()도 참조하십시오 .
© 2026 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.