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.
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.