Selection Struct

struct QAbstractTextDocumentLayout::Selection

QAbstractTextDocumentLayout::Selection 클래스는 선택 항목의 매개변수를 정의하는 편의 클래스입니다. 더 보기...

공용 변수

QTextCursor cursor
QTextCharFormat format

상세 설명

선택 영역은 QAbstractTextDocumentLayout::draw() 함수를 사용하여 QTextDocuments의 사용자 지정 레이아웃을 그릴 때 강조 표시해야 하는 문서 부분을 지정하는 데 사용할 수 있습니다. cursorformat 을 사용하여 지정합니다.

QAbstractTextDocumentLayoutPaintContext참조하세요 .

멤버 변수 문서

QTextCursor Selection::cursor

이 변수는 선택 영역의 커서를 유지합니다.

기본값은 널 커서입니다.

QTextCharFormat Selection::format

이 변수에는 선택 항목의 형식이 저장됩니다.

기본값은 QTextFormat::InvalidFormat 입니다.

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