QTextTableCellFormat

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

Inheritance diagram of PySide2.QtGui.QTextTableCellFormat

Synopsis

Functions

Detailed Description

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() .

class QTextTableCellFormat

QTextTableCellFormat(fmt)

QTextTableCellFormat(QTextTableCellFormat)

param QTextTableCellFormat

QTextTableCellFormat

param fmt

QTextFormat

Constructs a new table cell format object.

PySide2.QtGui.QTextTableCellFormat.bottomPadding()
Return type

qreal

Gets the bottom padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.leftPadding()
Return type

qreal

Gets the left padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.rightPadding()
Return type

qreal

Gets the right padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.setBottomPadding(padding)
Parameters

paddingqreal

Sets the bottom padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.setLeftPadding(padding)
Parameters

paddingqreal

Sets the left padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.setPadding(padding)
Parameters

paddingqreal

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

PySide2.QtGui.QTextTableCellFormat.setRightPadding(padding)
Parameters

paddingqreal

Sets the right padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.setTopPadding(padding)
Parameters

paddingqreal

Sets the top padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.topPadding()
Return type

qreal

Gets the top padding of the table cell.