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.bottomBorder()
Return type

qreal

Returns the bottom border width of the table cell.

PySide2.QtGui.QTextTableCellFormat.bottomBorderBrush()
Return type

QBrush

Returns the bottom border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat.bottomBorderStyle()
Return type

BorderStyle

Returns the bottom border style of the table cell.

PySide2.QtGui.QTextTableCellFormat.bottomPadding()
Return type

qreal

Gets the bottom padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.leftBorder()
Return type

qreal

Returns the left border width of the table cell.

See also

setLeftBorder()

PySide2.QtGui.QTextTableCellFormat.leftBorderBrush()
Return type

QBrush

Returns the left border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat.leftBorderStyle()
Return type

BorderStyle

Returns the left border style of the table cell.

PySide2.QtGui.QTextTableCellFormat.leftPadding()
Return type

qreal

Gets the left padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.rightBorder()
Return type

qreal

Returns the right border width of the table cell.

See also

setRightBorder()

PySide2.QtGui.QTextTableCellFormat.rightBorderBrush()
Return type

QBrush

Returns the right border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat.rightBorderStyle()
Return type

BorderStyle

Returns the right border style of the table cell.

PySide2.QtGui.QTextTableCellFormat.rightPadding()
Return type

qreal

Gets the right padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.setBorder(width)
Parameters

widthqreal

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

PySide2.QtGui.QTextTableCellFormat.setBorderBrush(brush)
Parameters

brushQBrush

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

PySide2.QtGui.QTextTableCellFormat.setBorderStyle(style)
Parameters

styleBorderStyle

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

PySide2.QtGui.QTextTableCellFormat.setBottomBorder(width)
Parameters

widthqreal

Sets the bottom border width of the table cell.

PySide2.QtGui.QTextTableCellFormat.setBottomBorderBrush(brush)
Parameters

brushQBrush

Sets the bottom border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat.setBottomBorderStyle(style)
Parameters

styleBorderStyle

Sets the bottom border style of the table cell.

PySide2.QtGui.QTextTableCellFormat.setBottomPadding(padding)
Parameters

paddingqreal

Sets the bottom padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.setLeftBorder(width)
Parameters

widthqreal

Sets the left border width of the table cell.

PySide2.QtGui.QTextTableCellFormat.setLeftBorderBrush(brush)
Parameters

brushQBrush

Sets the left border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat.setLeftBorderStyle(style)
Parameters

styleBorderStyle

Sets the left border style 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.setRightBorder(width)
Parameters

widthqreal

Sets the right border width of the table cell.

PySide2.QtGui.QTextTableCellFormat.setRightBorderBrush(brush)
Parameters

brushQBrush

Sets the right border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat.setRightBorderStyle(style)
Parameters

styleBorderStyle

Sets the right border style of the table cell.

PySide2.QtGui.QTextTableCellFormat.setRightPadding(padding)
Parameters

paddingqreal

Sets the right padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.setTopBorder(width)
Parameters

widthqreal

Sets the top border width of the table cell.

PySide2.QtGui.QTextTableCellFormat.setTopBorderBrush(brush)
Parameters

brushQBrush

Sets the top border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat.setTopBorderStyle(style)
Parameters

styleBorderStyle

Sets the top border style of the table cell.

PySide2.QtGui.QTextTableCellFormat.setTopPadding(padding)
Parameters

paddingqreal

Sets the top padding of the table cell.

PySide2.QtGui.QTextTableCellFormat.topBorder()
Return type

qreal

Returns the top border width of the table cell.

See also

setTopBorder()

PySide2.QtGui.QTextTableCellFormat.topBorderBrush()
Return type

QBrush

Returns the top border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat.topBorderStyle()
Return type

BorderStyle

Returns the top border style of the table cell.

PySide2.QtGui.QTextTableCellFormat.topPadding()
Return type

qreal

Gets the top padding of the table cell.