User Interface Compiler (uic)
이 페이지에서는 User Interface Compiler 에 대한 Qt Widgets.ui 에 대한 내용을 다룹니다. ` uic `는 Qt Widgets Designer 생성된 XML 형식의 사용자 인터페이스 정의( xml-ph-0001@deepl.internal ) 파일을 읽고, 이에 상응하는 C++ 헤더 파일이나 Python 소스 파일을 생성합니다.
사용법:
uic [options] <uifile>옵션
다음 표에는 uic 가 인식하는 명령줄 옵션이 나열되어 있습니다.
| 옵션 | 설명 |
|---|---|
-h, --help | 명령줄 옵션에 대한 도움말을 표시합니다. |
-help-all | Qt 관련 옵션을 포함한 도움말을 표시합니다. |
-v, --version | 버전 정보를 표시합니다. |
-d, --dependencies | 의존성을 표시합니다. |
-o, --output <file> | 출력 내용을 <file>에 저장합니다. |
-a, --no-autoconnection | QObject::connectSlotsByName() 호출을 생성하지 않습니다. |
-p, --no-protection | 헤더 보호를 비활성화합니다. |
-n, --no-implicit-includes | #include 지시문의 생성을 비활성화합니다. |
--postfix <postfix> | 생성된 모든 클래스 이름에 추가할 접미사. |
--tr, --translate <function> | i18n에는 <function>을 사용하십시오. |
--include <include-file> | <file>에 #include <include-file>을 추가합니다. |
-g, --generator <python|cpp> | 생성기를 선택합니다. |
-c, --connections <pmf|string> | 연결 구문. |
--idbased | i18n의 경우 ID 기반 함수를 사용하십시오. |
--from-imports | Python: '.'를 기준으로 상대 경로의 임포트 생성 |
--absolute-imports | Python: 절대 임포트 생성 |
--rc-prefix | 파이썬: "file_rc" 임포트 대신 "rc_file" 생성 |
--star-imports | 파이썬: * 임포트 사용 |
--python-paths <pathlist> | --absolute-imports 에 대한 파이썬 경로. |
사용법
“C++ 애플리케이션에서 Qt Widgets Designer UI 파일 사용하기” 또는 “ Qt for Python 애플리케이션에서 Qt Widgets Designer UI 파일 사용하기”를 참조하십시오.
© 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.