56 QVariant
content()
const {
return mContent; }
63 void setContent(
const QVariant &content ) { mContent = content; }
140 Qt::Alignment horizontalAlignment()
const;
149 void setHorizontalAlignment( Qt::Alignment alignment );
158 Qt::Alignment verticalAlignment()
const;
167 void setVerticalAlignment( Qt::Alignment alignment );
177 void setSpan(
int rowSpan,
int columnSpan );
215 SIP_PYOBJECT __repr__();
217 QString str = QStringLiteral(
"<QgsTableCell: %1>" ).arg( sipCpp->content().toString() );
218 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
225 QColor mBackgroundColor;
226 QColor mForegroundColor;
228 std::unique_ptr< QgsNumericFormat > mFormat;
230 Qt::Alignment mHAlign = Qt::AlignLeft;
231 Qt::Alignment mVAlign = Qt::AlignVCenter;
The class is used as a container of context for various read/write operations on other objects.
Encapsulates the contents and formatting of a single table cell.
int columnSpan() const
Returns the column span for the cell.
void setBackgroundColor(const QColor &color)
Sets the cell's background color.
QColor foregroundColor() const
Returns the cell's foreground color, or an invalid color if a default color should be used for the fo...
void setTextFormat(const QgsTextFormat &format)
Sets the cell's text format.
void setContent(const QVariant &content)
Sets the cell's content.
QVariant content() const
Returns the cell's content.
QgsTextFormat textFormat() const
Returns the cell's text format.
void setForegroundColor(const QColor &color)
Sets the cell's foreground color.
int rowSpan() const
Returns the row span for the cell.
QColor backgroundColor() const
Returns the cell's background color, or an invalid color if a default color should be used for the ba...
Container for all settings relating to text rendering.
QVector< QgsTableRow > QgsTableContents
A set of table rows.
QVector< QgsTableCell > QgsTableRow
A row of table cells.