|  | Home · All Classes · Modules

# QTextTableCellFormat Class Reference
[QtGui module]

The QTextTableCellFormat class provides formatting information for table cells in a QTextDocument. More...

Inherits QTextCharFormat.

### Methods

- __init__ (self)
- __init__ (self, QTextTableCellFormat)
- float bottomPadding (self)
- bool isValid (self)
- float leftPadding (self)
- float rightPadding (self)
- setBottomPadding (self, float)
- setLeftPadding (self, float)
- setPadding (self, float)
- setRightPadding (self, float)
- setTopPadding (self, float)
- float topPadding (self)

## Detailed Description

The QTextTableCellFormat class provides formatting information for table cells in a QTextDocument.

The table cell format of a table cell in a document specifies the visual properties of the table cell.

The padding properties of a table cell are controlled by setLeftPadding(), setRightPadding(), setTopPadding(), and setBottomPadding(). All the paddings can be set at once using setPadding().

See also QTextFormat, QTextBlockFormat, QTextTableFormat, and QTextCharFormat.

## Method Documentation

### QTextTableCellFormat.__init__ (self)

Constructs a new table cell format object.

This function was introduced in Qt 4.4.

### QTextTableCellFormat.__init__ (self, QTextTableCellFormat)

### float QTextTableCellFormat.bottomPadding (self)

Gets the bottom padding of the table cell.

This function was introduced in Qt 4.4.

See also setBottomPadding(), leftPadding(), rightPadding(), and topPadding().

### bool QTextTableCellFormat.isValid (self)

Returns true if this table cell format is valid; otherwise returns false.

This function was introduced in Qt 4.4.

### float QTextTableCellFormat.leftPadding (self)

Gets the left padding of the table cell.

This function was introduced in Qt 4.4.

See also setLeftPadding(), rightPadding(), topPadding(), and bottomPadding().

### float QTextTableCellFormat.rightPadding (self)

Gets the right padding of the table cell.

This function was introduced in Qt 4.4.

See also setRightPadding(), leftPadding(), topPadding(), and bottomPadding().

### QTextTableCellFormat.setBottomPadding (self, float)

Sets the bottom padding of the table cell.

This function was introduced in Qt 4.4.

See also bottomPadding(), setLeftPadding(), setRightPadding(), and setTopPadding().

### QTextTableCellFormat.setLeftPadding (self, float)

Sets the left padding of the table cell.

This function was introduced in Qt 4.4.

See also leftPadding(), setRightPadding(), setTopPadding(), and setBottomPadding().

### QTextTableCellFormat.setPadding (self, float)

Sets the left, right, top, and bottom padding of the table cell.

This function was introduced in Qt 4.4.

See also setLeftPadding(), setRightPadding(), setTopPadding(), and setBottomPadding().

### QTextTableCellFormat.setRightPadding (self, float)

Sets the right padding of the table cell.

This function was introduced in Qt 4.4.

See also rightPadding(), setLeftPadding(), setTopPadding(), and setBottomPadding().

### QTextTableCellFormat.setTopPadding (self, float)

Sets the top padding of the table cell.

This function was introduced in Qt 4.4.

See also topPadding(), setLeftPadding(), setRightPadding(), and setBottomPadding().

### float QTextTableCellFormat.topPadding (self)

Gets the top padding of the table cell.

This function was introduced in Qt 4.4.

See also setTopPadding(), leftPadding(), rightPadding(), and bottomPadding().