Table Of Contents

Previous topic

QTextCharFormat

Next topic

QTextImageFormat

QTextTableCellFormat

Inheritance diagram of QTextTableCellFormat

Synopsis

Functions

Detailed Description

The PySide.QtGui.QTextTableCellFormat class provides formatting information for table cells in a PySide.QtGui.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 PySide.QtGui.QTextTableCellFormat.setLeftPadding() , PySide.QtGui.QTextTableCellFormat.setRightPadding() , PySide.QtGui.QTextTableCellFormat.setTopPadding() , and PySide.QtGui.QTextTableCellFormat.setBottomPadding() . All the paddings can be set at once using PySide.QtGui.QTextTableCellFormat.setPadding() .

class PySide.QtGui.QTextTableCellFormat
class PySide.QtGui.QTextTableCellFormat(fmt)
class PySide.QtGui.QTextTableCellFormat(QTextTableCellFormat)
Parameters:

Constructs a new table cell format object.

Creates a new table cell format with the same attributes as the given text format.

PySide.QtGui.QTextTableCellFormat.bottomPadding()
Return type:PySide.QtCore.qreal

Gets the bottom padding of the table cell.

PySide.QtGui.QTextTableCellFormat.leftPadding()
Return type:PySide.QtCore.qreal

Gets the left padding of the table cell.

PySide.QtGui.QTextTableCellFormat.rightPadding()
Return type:PySide.QtCore.qreal

Gets the right padding of the table cell.

PySide.QtGui.QTextTableCellFormat.setBottomPadding(padding)
Parameters:paddingPySide.QtCore.qreal

Sets the bottom padding of the table cell.

PySide.QtGui.QTextTableCellFormat.setLeftPadding(padding)
Parameters:paddingPySide.QtCore.qreal

Sets the left padding of the table cell.

PySide.QtGui.QTextTableCellFormat.setPadding(padding)
Parameters:paddingPySide.QtCore.qreal

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

PySide.QtGui.QTextTableCellFormat.setRightPadding(padding)
Parameters:paddingPySide.QtCore.qreal

Sets the right padding of the table cell.

PySide.QtGui.QTextTableCellFormat.setTopPadding(padding)
Parameters:paddingPySide.QtCore.qreal

Sets the top padding of the table cell.

PySide.QtGui.QTextTableCellFormat.topPadding()
Return type:PySide.QtCore.qreal

Gets the top padding of the table cell.