このページでは

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

型が 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.