28using namespace Qt::StringLiterals;
61 QVariant
content()
const {
return mContent; }
145 Qt::Alignment horizontalAlignment()
const;
154 void setHorizontalAlignment( Qt::Alignment alignment );
163 Qt::Alignment verticalAlignment()
const;
172 void setVerticalAlignment( Qt::Alignment alignment );
182 void setSpan(
int rowSpan,
int columnSpan );
220 SIP_PYOBJECT __repr__();
222 QString str = u
"<QgsTableCell: %1>"_s.arg( sipCpp->content().toString() );
223 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
230 QColor mBackgroundColor;
231 QColor mForegroundColor;
233 std::unique_ptr< QgsNumericFormat > mFormat;
235 Qt::Alignment mHAlign = Qt::AlignLeft;
236 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.