#ifndef QT_TABLE_H #define QT_TABLE_H #include class QtTable : public QTableView { Q_OBJECT public: QtTable(QWidget* parent = nullptr); virtual ~QtTable(); void updateRows(); void setTableModel(QAbstractItemModel* model); int getFilledRowCount(); void showFirstRow(); void showLastRow(); bool hasSelection() const; protected: virtual void resizeEvent(QResizeEvent* event); private: float m_rowsToFill; }; #endif // QT_TABLE_H