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 は、tabTypeDelimiterTab の場合にのみ使用されます。

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 を持つ段落では、LeftTabRightTab と解釈されます。

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