위젯 도구 예제

Qt Widgets는 위젯 기반 애플리케이션을 위해 자동 완성, 실행 취소/다시 실행 기능 및 정규식 기능을 제공합니다.
Completer 예제는 모델에서 제공하는 데이터를 기반으로 입력 위젯에 문자열 자동 완성 기능을 제공하는 방법을 보여줍니다. | |
Custom Completer 예제는 모델에서 제공하는 데이터를 기반으로 입력 위젯에 문자열 완성 기능을 제공하는 방법을 보여줍니다. 이 완성기는 사용자가 입력한 처음 세 글자를 바탕으로 가능한 단어 후보를 팝업으로 표시하며, 사용자가 선택한 단어는 QTextCursor를 사용하여 TextEdit에 삽입됩니다. | |
QRegularExpression 예제는 새로운 정규식을 생성하고 사용자 정의 텍스트 문자열에 대해 테스트할 수 있는 환경을 제공함으로써, Qt의 정규식이 텍스트에 어떻게 적용되는지 보여줍니다. | |
Tree Model Completer 예제는 마침표(.)를 구분자로 사용하여 Child, GrandChild 및 GrandGrandChild 레벨의 객체에 접근함으로써 계층적 모델에 대한 자동 완성 기능을 제공하는 방법을 보여줍니다. | |
이 예제는 Qt undo 프레임워크를 사용하여 실행 취소/다시 실행 기능을 구현하는 방법을 보여줍니다. |
© 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.