QTextOption::Tab Struct
struct QTextOption::TabÖffentliche Funktionen
| Tab() | |
| Tab(qreal pos, QTextOption::TabType tabType, QChar delim = QChar()) | |
| bool | operator!=(const QTextOption::Tab &other) const |
| bool | operator==(const QTextOption::Tab &other) const |
Öffentliche Variablen
Dokumentation der Mitgliedsfunktionen
Tab::Tab()
Erstellt einen Standard-Tabulator links mit der Position 80.
Tab::Tab(qreal pos, QTextOption::TabType tabType, QChar delim = QChar())
Erstellt eine Tabulatorposition mit der angegebenen Position, dem Tabulatortyp und dem Trennzeichen (pos, tabType, delim).
Hinweis: „ delim “ wird nur verwendet, wenn „ tabType “ gleich „ DelimiterTab “ ist.
bool Tab::operator!=(const QTextOption::Tab &other) const
Gibt „ true “ zurück, wenn die Registerkarte „ other “ nicht mit dieser Registerkarte übereinstimmt; andernfalls wird „ false “ zurückgegeben.
bool Tab::operator==(const QTextOption::Tab &other) const
Gibt „ true “ zurück, wenn die Registerkarte „ other “ mit dieser Registerkarte übereinstimmt; andernfalls wird „ false “ zurückgegeben.
Dokumentation zu Member-Variablen
QChar Tab::delimiter
Wenn der Typ „DelimitorTab“ ist: Tabulator, bis dieses Zeichen im Text gefunden wird.
qreal Tab::position
Abstand vom Absatzanfang. Die Position eines Tabulators wird vom Absatzanfang aus gemessen, was bedeutet, dass bei einer zentrierten Ausrichtung des Absatzes der Tabulator so interpretiert wird, dass er um denselben Abstand verschoben wird wie der linke Rand des Absatzes. Falls für den Absatz eine `layoutDirection()` von „RightToLeft“ festgelegt ist, wird die Position als vom rechten Rand des Absatzes aus gemessen interpretiert, wobei höhere Zahlen den Tabulator nach links verschieben.
QTextOption::TabType Tab::type
Stellen Sie fest, welcher Typ verwendet wird. In einem Absatz mit layoutDirection() RightToLeft wird der Typ „ LeftTab “ als „ RightTab “ interpretiert und umgekehrt.
© 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.