Tab Struct
struct QTextOption::TabThis struct was introduced in Qt 4.4.
Public Functions
Tab(qreal pos, TabType tabType, QChar delim = QChar()) | |
Tab() | |
bool | operator!=(const Tab &other) const |
bool | operator==(const Tab &other) const |
Public Variables
Member Function Documentation
Tab::Tab(qreal pos, TabType tabType, QChar delim = QChar())
Creates a tab with the given position, tab type, and delimiter (pos, tabType, delim).
Note: delim is only used when tabType is DelimiterTab.
This function was introduced in Qt 4.7.
Tab::Tab()
Creates a default left tab with position 80.
bool Tab::operator!=(const Tab &other) const
Returns true
if tab other is not equal to this tab; otherwise returns false
.
bool Tab::operator==(const Tab &other) const
Returns true
if tab other is equal to this tab; otherwise returns false
.
Member Variable Documentation
QChar Tab::delimiter
If type is DelimitorTab; tab until this char is found in the text.
qreal Tab::position
Distance from the start of the paragraph. The position of a tab is from the start of the paragraph which implies that when the alignment of the paragraph is set to centered, the tab is interpreted to be moved the same distance as the left ege of the paragraph does. In case the paragraph is set to have a layoutDirection() RightToLeft the position is interpreted to be from the right side of the paragraph with higher numbers moving the tab to the left.
QTextOption::TabType Tab::type
Determine which type is used. In a paragraph that has layoutDirection() RightToLeft the type LeftTab will be interpreted to be a RightTab and vice versa.
© 2024 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.