이 페이지에서

QTextLayout::FormatRange Struct

struct QTextLayout::FormatRange

QTextLayout::FormatRange 구조는 텍스트 레이아웃 콘텐츠 내의 지정된 영역에 추가 서식 정보를 적용하는 데 사용됩니다. 더 보기...

공개 변수

QTextCharFormat format
int length
int start
bool operator!=(const QTextLayout::FormatRange &lhs, const QTextLayout::FormatRange &rhs)
bool operator==(const QTextLayout::FormatRange &lhs, const QTextLayout::FormatRange &rhs)

상세 설명

QTextLayout::setFormats() 및 QTextLayout::draw()도 참조하십시오 .

멤버 변수 문서

QTextCharFormat FormatRange::format

적용할 형식을 지정합니다.

int FormatRange::length

서식 범위가 차지하는 문자 수를 지정합니다.

int FormatRange::start

텍스트 레이아웃 내 텍스트에서 서식 범위의 시작 위치를 지정합니다.

관련 비회원

bool operator!=(const QTextLayout::FormatRange &lhs, const QTextLayout::FormatRange &rhs)

lhs 및 rhs 에 있는 start, length, format 필드 중 어느 하나라도 서로 다른 값을 포함하고 있는 경우 true를 반환합니다.

bool operator==(const QTextLayout::FormatRange &lhs, const QTextLayout::FormatRange &rhs)

lhs 및 rhs 의 ‘ start ’, ‘ length ’, ‘ format ’ 필드가 각각 동일한 값을 포함하는 경우 true를 반환합니다.

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