QTextTableCellFormat Class
The QTextTableCellFormat class provides formatting information for table cells in a QTextDocument. More...
Header: | #include <QTextTableCellFormat> |
qmake: | QT += gui |
Since: | Qt 4.4 |
Inherits: | QTextCharFormat |
Note: All functions in this class are reentrant.
Public Functions
QTextTableCellFormat() | |
qreal | bottomPadding() const |
bool | isValid() const |
qreal | leftPadding() const |
qreal | rightPadding() const |
void | setBottomPadding(qreal padding) |
void | setLeftPadding(qreal padding) |
void | setPadding(qreal padding) |
void | setRightPadding(qreal padding) |
void | setTopPadding(qreal padding) |
qreal | topPadding() const |
- 60 public functions inherited from QTextCharFormat
- 51 public functions inherited from QTextFormat
Protected Functions
QTextTableCellFormat(const QTextFormat &fmt) |
Detailed Description
The QTextTableCellFormat class provides formatting information for table cells in a QTextDocument.
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().
See also QTextFormat, QTextBlockFormat, QTextTableFormat, and QTextCharFormat.
Member Function Documentation
QTextTableCellFormat::QTextTableCellFormat()
Default constructs an instance of QTextTableCellFormat.
[protected]
QTextTableCellFormat::QTextTableCellFormat(const QTextFormat &fmt)
Default constructs an instance of QTextTableCellFormat.
qreal QTextTableCellFormat::bottomPadding() const
See also setBottomPadding().
bool QTextTableCellFormat::isValid() const
qreal QTextTableCellFormat::leftPadding() const
See also setLeftPadding().
qreal QTextTableCellFormat::rightPadding() const
See also setRightPadding().
void QTextTableCellFormat::setBottomPadding(qreal padding)
See also bottomPadding().
void QTextTableCellFormat::setLeftPadding(qreal padding)
See also leftPadding().
void QTextTableCellFormat::setPadding(qreal padding)
void QTextTableCellFormat::setRightPadding(qreal padding)
See also rightPadding().
void QTextTableCellFormat::setTopPadding(qreal padding)
See also topPadding().
qreal QTextTableCellFormat::topPadding() const
See also setTopPadding().