QAbstractTextDocumentLayout::Selection Struct
struct QAbstractTextDocumentLayout::SelectionQAbstractTextDocumentLayout::Selection 클래스는 선택 범위의 매개변수를 정의하는 편의 클래스입니다. 더 보기...
공개 변수
상세 설명
선택 영역은 ` QAbstractTextDocumentLayout::draw()` 함수를 사용하여 QTextDocument에 대한 사용자 정의 레이아웃을 그릴 때 강조 표시해야 할 문서의 일부를 지정하는 데 사용할 수 있습니다. 이는 ` cursor ` 및 ` format`을 사용하여 지정됩니다.
QAbstractTextDocumentLayout 및 PaintContext도 참조하십시오 .
멤버 변수 문서
QTextCursor Selection::cursor
이 변수는 선택 영역의 커서를 저장합니다.
기본값은 null 커서입니다.
QTextCharFormat Selection::format
이 변수는 선택 항목의 형식을 저장합니다.
기본값은 QTextFormat::InvalidFormat 입니다.
© 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.