57    QVariant 
content()
 const { 
return mContent; }
 
   64    void setContent( 
const QVariant &content ) { mContent = content; }
 
  141    Qt::Alignment horizontalAlignment() 
const;
 
  150    void setHorizontalAlignment( Qt::Alignment alignment );
 
  159    Qt::Alignment verticalAlignment() 
const;
 
  168    void setVerticalAlignment( Qt::Alignment alignment );
 
  186    SIP_PYOBJECT __repr__();
 
  188    QString 
str = QStringLiteral( 
"<QgsTableCell: %1>" ).arg( sipCpp->content().toString() );
 
  189    sipRes = PyUnicode_FromString( 
str.toUtf8().constData() );
 
  196    QColor mBackgroundColor;
 
  197    QColor mForegroundColor;
 
  199    std::unique_ptr< QgsNumericFormat > mFormat;
 
  201    Qt::Alignment mHAlign = Qt::AlignLeft;
 
  202    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.
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.
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.