#pragma once #include namespace Dpi { // TStringGrid equivalent. class StringGrid : public QTableWidget { Q_OBJECT public: explicit StringGrid(QWidget *parent = nullptr); QString cell(int col, int row) const; void setCell(int col, int row, const QString &value); int fixedRows() const { return m_fixedRows; } void setFixedRows(int value); int fixedCols() const { return m_fixedCols; } void setFixedCols(int value) { m_fixedCols = value; } QRect cellRect(int col, int row) const; private: int m_fixedRows = 0; int m_fixedCols = 0; }; } // namespace Dpi