58 QVariant
content()
const {
return mContent; }
142 Qt::Alignment horizontalAlignment()
const;
151 void setHorizontalAlignment( Qt::Alignment alignment );
160 Qt::Alignment verticalAlignment()
const;
169 void setVerticalAlignment( Qt::Alignment alignment );
179 void setSpan(
int rowSpan,
int columnSpan );
217 SIP_PYOBJECT __repr__();
219 QString str = QStringLiteral(
"<QgsTableCell: %1>" ).arg( sipCpp->content().toString() );
220 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
227 QColor mBackgroundColor;
228 QColor mForegroundColor;
230 std::unique_ptr< QgsNumericFormat > mFormat;
232 Qt::Alignment mHAlign = Qt::AlignLeft;
233 Qt::Alignment mVAlign = Qt::AlignVCenter;
A container for the context for various read/write operations on objects.
int columnSpan() const
Returns the column span for the cell.
QgsTableCell(const QVariant &content=QVariant())
Constructor for QgsTableCell, with the specified content.
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.
QgsTableCell & operator=(const QgsTableCell &other)
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.