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