이 페이지에서

QTextOption::Tab Struct

struct QTextOption::Tab

공개 함수

Tab()
Tab(qreal pos, QTextOption::TabType tabType, QChar delim = QChar())
bool operator!=(const QTextOption::Tab &other) const
bool operator==(const QTextOption::Tab &other) const

공개 변수

QChar delimiter
qreal position
QTextOption::TabType type

상세 설명

각 탭 정의는 이 구조체로 표현됩니다.

멤버 함수 설명

Tab::Tab()

위치 80인 기본 왼쪽 탭을 생성합니다.

Tab::Tab(qreal pos, QTextOption::TabType tabType, QChar delim = QChar())

지정된 위치, 탭 유형 및 구분자(pos, tabType, delim)를 사용하여 탭을 생성합니다.

참고: delim 은 tabType 이 DelimiterTab 일 때만 사용됩니다.

bool Tab::operator!=(const QTextOption::Tab &other) const

other 탭이 이 탭과 일치하지 않으면 ` true `을 반환하고, 일치하면 ` false`을 반환합니다.

bool Tab::operator==(const QTextOption::Tab &other) const

other 탭이 이 탭과 일치하면 ` true `을 반환하고, 그렇지 않으면 ` false`을 반환합니다.

멤버 변수 설명서

QChar Tab::delimiter

type이 DelimitorTab인 경우, 텍스트에서 이 문자가 나타날 때까지 탭을 검색합니다.

qreal Tab::position

단락 시작 부분으로부터의 거리. 탭의 위치는 단락 시작 부분으로부터 측정되며, 이는 단락의 정렬이 ‘중앙 정렬’으로 설정된 경우 탭이 단락의 왼쪽 가장자리와 동일한 거리만큼 이동한 것으로 해석됨을 의미합니다. 단락의 layoutDirection()이 RightToLeft로 설정된 경우, 위치는 단락의 오른쪽 끝을 기준으로 해석되며, 숫자가 클수록 탭이 왼쪽으로 이동합니다.

QTextOption::TabType Tab::type

어떤 유형이 사용되는지 확인하십시오. layoutDirection()이 RightToLeft인 단락에서는 LeftTab 유형이 RightTab 로 해석되며, 그 반대의 경우도 마찬가지입니다.

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