QT_WINDOWS_APP_PROJECT_실행_레벨

생성된 Windows 애플리케이션 매니페스트의 UAC 실행 수준.

이 속성은 Qt 6.11.1에서 도입되었습니다.

참고: 이 속성은 Windows를 대상으로 하는 경우에만 사용됩니다.

qt_add_executable()를 사용하여 빌드된 Windows 실행 파일을 위해 Qt가 자동으로 생성하는 애플리케이션 매니페스트 내의 ` requestedExecutionLevel ` 요소에 대한 ` level ` 속성을 설정합니다.

유효한 값은 다음과 같습니다:

  • asInvoker — 애플리케이션을 시작한 프로세스와 동일한 권한으로 실행합니다(기본값).
  • highestAvailable — 현재 사용자가 가질 수 있는 가장 높은 권한으로 실행합니다.
  • requireAdministrator — 관리자 권한으로만 실행합니다. 필요한 경우 Windows에서 권한 상승을 요청합니다.

유효하지 않은 값이 지정된 경우, CMake 경고가 표시되고 asInvoker 가 사용됩니다.

대상 소스 코드에 이미 .manifest 파일이 포함되어 있는 경우, Qt는 자동 매니페스트 생성을 건너뛰며 이 속성은 아무런 영향을 미치지 않습니다.

set_target_properties(myapp PROPERTIES
    QT_WINDOWS_APP_PROJECT_EXECUTION_LEVEL "requireAdministrator"
)

Qt for Windows - 배포 및 QT_WINDOWS_APP_PROJECT_IDENTIFIER항목도 참조하십시오 .

© 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.