Tab Struct

Struct Tab is declared in class QTextOption.

This struct was introduced in Qt 4.4.

Public Variables

QChar delimiter
qreal position
QTextOption::TabType type

Detailed Description

Each tab definition is represented by this struct.

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.