QTextTableCellFormat¶
The
QTextTableCellFormat
class provides formatting information for table cells in aQTextDocument
. More…

Synopsis¶
Functions¶
def
bottomPadding
()def
leftPadding
()def
rightPadding
()def
setBottomPadding
(padding)def
setLeftPadding
(padding)def
setPadding
(padding)def
setRightPadding
(padding)def
setTopPadding
(padding)def
topPadding
()
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()
, andsetBottomPadding()
. All the paddings can be set at once usingsetPadding()
.
-
class
QTextTableCellFormat
¶ QTextTableCellFormat(fmt)
QTextTableCellFormat(QTextTableCellFormat)
- param QTextTableCellFormat
- param fmt
Constructs a new table cell format object.
Creates a new table cell format with the same attributes as the
given
text format.
-
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
padding –
qreal
Sets the bottom
padding
of the table cell.
-
PySide2.QtGui.QTextTableCellFormat.
setLeftPadding
(padding)¶ - Parameters
padding –
qreal
Sets the left
padding
of the table cell.
-
PySide2.QtGui.QTextTableCellFormat.
setPadding
(padding)¶ - Parameters
padding –
qreal
Sets the left, right, top, and bottom
padding
of the table cell.
-
PySide2.QtGui.QTextTableCellFormat.
setRightPadding
(padding)¶ - Parameters
padding –
qreal
Sets the right
padding
of the table cell.
-
PySide2.QtGui.QTextTableCellFormat.
setTopPadding
(padding)¶ - Parameters
padding –
qreal
Sets the top
padding
of the table cell.
-
PySide2.QtGui.QTextTableCellFormat.
topPadding
()¶ - Return type
qreal
Gets the top padding of the table cell.