TextSelection QML Type

연속된 텍스트 선택 영역과 해당 속성을 나타냅니다. 더 보기...

Import Statement: import QtQuick
Since: Qt 6.7

속성

상세 설명

TextEdit.cursorSelection 현재 선택된 텍스트 범위(예: 마우스 드래그)를 나타냅니다. 선택한 텍스트는 물론 characterblock 형식의 속성을 쿼리하고 수정하는 데 사용할 수 있습니다.

참고: 이 API는 기술 미리보기로 간주되며 향후 Qt 버전에서 변경되거나 제거될 수 있습니다.

TextEditQTextCursor참조하세요 .

속성 문서

alignment : enumeration

선택한 텍스트가 포함된 블록의 정렬입니다.

QTextBlockFormat::alignment()도 참조하세요 .


color : color

선택된 텍스트의 전경색.

QTextCharFormat::foreground()도 참조하십시오 .


font : color

선택한 텍스트의 글꼴입니다.

QTextCharFormat::font()도 참조하십시오 .


text : string

서식 있는 텍스트 마크업 없이 선택한 텍스트입니다.

이 속성을 설정하면 선택한 텍스트가 지정된 문자열로 바뀝니다.


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