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

详细描述

Each tab definition is represented by this struct.

成员函数文档编制

Tab:: Tab ()

Creates a default left tab with position 80.

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

Creates a tab with the given position, tab type, and delimiter ( pos , tabType , delim ).

注意: delim is only used when tabType is DelimiterTab .

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

返回 true if tab other is not equal to this tab; otherwise returns false .

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

返回 true if tab other is equal to this tab; otherwise returns false .

成员变量文档编制

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