QTextTableCellFormatclass provides formatting information for table cells in aQTextDocument. 更多 …
def
bottomBorder
()
def
bottomBorderBrush
()
def
bottomBorderStyle
()
def
bottomPadding
()
def
leftBorder
()
def
leftBorderBrush
()
def
leftBorderStyle
()
def
leftPadding
()
def
rightBorder
()
def
rightBorderBrush
()
def
rightBorderStyle
()
def
rightPadding
()
def
setBorder
(width)
def
setBorderBrush
(brush)
def
setBorderStyle
(style)
def
setBottomBorder
(width)
def
setBottomBorderBrush
(brush)
def
setBottomBorderStyle
(style)
def
setBottomPadding
(padding)
def
setLeftBorder
(width)
def
setLeftBorderBrush
(brush)
def
setLeftBorderStyle
(style)
def
setLeftPadding
(padding)
def
setPadding
(padding)
def
setRightBorder
(width)
def
setRightBorderBrush
(brush)
def
setRightBorderStyle
(style)
def
setRightPadding
(padding)
def
setTopBorder
(width)
def
setTopBorderBrush
(brush)
def
setTopBorderStyle
(style)
def
setTopPadding
(padding)
def
topBorder
()
def
topBorderBrush
()
def
topBorderStyle
()
def
topPadding
()
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(),和setBottomPadding(). All the paddings can be set at once usingsetPadding().
QTextTableCellFormat
¶
QTextTableCellFormat(fmt)
QTextTableCellFormat(QTextTableCellFormat)
- param QTextTableCellFormat
- param fmt
Constructs a new table cell format object.
PySide2.QtGui.QTextTableCellFormat.
bottomBorder
(
)
¶
qreal
Returns the bottom border width of the table cell.
另请参阅
PySide2.QtGui.QTextTableCellFormat.
bottomBorderBrush
(
)
¶
Returns the bottom border brush of the table cell.
PySide2.QtGui.QTextTableCellFormat.
bottomBorderStyle
(
)
¶
BorderStyle
Returns the bottom border style of the table cell.
PySide2.QtGui.QTextTableCellFormat.
bottomPadding
(
)
¶
qreal
Gets the bottom padding of the table cell.
PySide2.QtGui.QTextTableCellFormat.
leftBorder
(
)
¶
qreal
Returns the left border width of the table cell.
另请参阅
PySide2.QtGui.QTextTableCellFormat.
leftBorderBrush
(
)
¶
Returns the left border brush of the table cell.
另请参阅
PySide2.QtGui.QTextTableCellFormat.
leftBorderStyle
(
)
¶
BorderStyle
Returns the left border style of the table cell.
另请参阅
PySide2.QtGui.QTextTableCellFormat.
leftPadding
(
)
¶
qreal
Gets the left padding of the table cell.
PySide2.QtGui.QTextTableCellFormat.
rightBorder
(
)
¶
qreal
Returns the right border width of the table cell.
另请参阅
PySide2.QtGui.QTextTableCellFormat.
rightBorderBrush
(
)
¶
Returns the right border brush of the table cell.
PySide2.QtGui.QTextTableCellFormat.
rightBorderStyle
(
)
¶
BorderStyle
Returns the right border style of the table cell.
PySide2.QtGui.QTextTableCellFormat.
rightPadding
(
)
¶
qreal
Gets the right padding of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setBorder
(
width
)
¶
width
–
qreal
Sets the left, right, top, and bottom border
width
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setBorderBrush
(
brush
)
¶
brush
–
QBrush
Sets the left, right, top, and bottom border
brush
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setBorderStyle
(
style
)
¶
style
–
BorderStyle
Sets the left, right, top, and bottom border
style
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setBottomBorder
(
width
)
¶
width
–
qreal
Sets the bottom border
width
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setBottomBorderBrush
(
brush
)
¶
brush
–
QBrush
Sets the bottom border
brush
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setBottomBorderStyle
(
style
)
¶
style
–
BorderStyle
Sets the bottom border
style
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setBottomPadding
(
padding
)
¶
padding
–
qreal
Sets the bottom
padding
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setLeftBorder
(
width
)
¶
width
–
qreal
Sets the left border
width
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setLeftBorderBrush
(
brush
)
¶
brush
–
QBrush
Sets the left border
brush
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setLeftBorderStyle
(
style
)
¶
style
–
BorderStyle
Sets the left border
style
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setLeftPadding
(
padding
)
¶
padding
–
qreal
Sets the left
padding
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setPadding
(
padding
)
¶
padding
–
qreal
Sets the left, right, top, and bottom
padding
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setRightBorder
(
width
)
¶
width
–
qreal
Sets the right border
width
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setRightBorderBrush
(
brush
)
¶
brush
–
QBrush
Sets the right border
brush
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setRightBorderStyle
(
style
)
¶
style
–
BorderStyle
Sets the right border
style
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setRightPadding
(
padding
)
¶
padding
–
qreal
Sets the right
padding
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setTopBorder
(
width
)
¶
width
–
qreal
Sets the top border
width
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setTopBorderBrush
(
brush
)
¶
brush
–
QBrush
Sets the top border
brush
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setTopBorderStyle
(
style
)
¶
style
–
BorderStyle
Sets the top border
style
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
setTopPadding
(
padding
)
¶
padding
–
qreal
Sets the top
padding
of the table cell.
PySide2.QtGui.QTextTableCellFormat.
topBorder
(
)
¶
qreal
Returns the top border width of the table cell.
另请参阅
PySide2.QtGui.QTextTableCellFormat.
topBorderBrush
(
)
¶
Returns the top border brush of the table cell.
另请参阅
PySide2.QtGui.QTextTableCellFormat.
topBorderStyle
(
)
¶
BorderStyle
Returns the top border style of the table cell.
另请参阅
PySide2.QtGui.QTextTableCellFormat.
topPadding
(
)
¶
qreal
Gets the top padding of the table cell.