Encapsulates the contents and formatting of a single table cell.
More...
#include <qgstablecell.h>
Encapsulates the contents and formatting of a single table cell.
- Since
- QGIS 3.12
Definition at line 35 of file qgstablecell.h.
◆ QgsTableCell() [1/2]
QgsTableCell::QgsTableCell |
( |
const QVariant & |
content = QVariant() | ) |
|
◆ QgsTableCell() [2/2]
◆ ~QgsTableCell()
QgsTableCell::~QgsTableCell |
( |
| ) |
|
|
default |
◆ backgroundColor()
QColor QgsTableCell::backgroundColor |
( |
| ) |
const |
|
inline |
Returns the cell's background color, or an invalid color if a default color should be used for the background.
- See also
- setBackgroundColor()
Definition at line 71 of file qgstablecell.h.
◆ content()
QVariant QgsTableCell::content |
( |
| ) |
const |
|
inline |
◆ foregroundColor()
QColor QgsTableCell::foregroundColor |
( |
| ) |
const |
|
inline |
Returns the cell's foreground color, or an invalid color if a default color should be used for the foreground.
- See also
- setForegroundColor()
Definition at line 87 of file qgstablecell.h.
◆ horizontalAlignment()
Qt::Alignment QgsTableCell::horizontalAlignment |
( |
| ) |
const |
◆ numericFormat()
◆ operator=()
◆ properties()
◆ setBackgroundColor()
void QgsTableCell::setBackgroundColor |
( |
const QColor & |
color | ) |
|
|
inline |
Sets the cell's background color.
Set an invalid color if a default color should be used for the background.
- See also
- backgroundColor()
Definition at line 80 of file qgstablecell.h.
◆ setContent()
void QgsTableCell::setContent |
( |
const QVariant & |
content | ) |
|
|
inline |
◆ setForegroundColor()
void QgsTableCell::setForegroundColor |
( |
const QColor & |
color | ) |
|
|
inline |
Sets the cell's foreground color.
Set an invalid color if a default color should be used for the foreground.
- See also
- foregroundColor()
Definition at line 96 of file qgstablecell.h.
◆ setHorizontalAlignment()
void QgsTableCell::setHorizontalAlignment |
( |
Qt::Alignment |
alignment | ) |
|
◆ setNumericFormat()
Sets the numeric format used for numbers in the cell, or nullptr
if no specific format is set.
Ownership of format is transferred to the cell.
- See also
- numericFormat()
Definition at line 55 of file qgstablecell.cpp.
◆ setProperties()
void QgsTableCell::setProperties |
( |
const QVariantMap & |
properties, |
|
|
const QgsReadWriteContext & |
context |
|
) |
| |
◆ setTextFormat()
Sets the cell's text format.
- Note
- The text format will only be used if hasTextFormat() returns
true
.
- See also
- textFormat()
- Since
- QGIS 3.16
Definition at line 116 of file qgstablecell.h.
◆ setVerticalAlignment()
void QgsTableCell::setVerticalAlignment |
( |
Qt::Alignment |
alignment | ) |
|
◆ textFormat()
Returns the cell's text format.
- Note
- The text format will only be used if hasTextFormat() returns
true
.
- See also
- setTextFormat()
- Since
- QGIS 3.16
Definition at line 106 of file qgstablecell.h.
◆ verticalAlignment()
Qt::Alignment QgsTableCell::verticalAlignment |
( |
| ) |
const |
The documentation for this class was generated from the following files: