hi,
i need to do some operation to every row of a QTableView, but the number of rows is varying from time to time, thus i need to get notified when row count changes in a QTableView?
how can i do that ?
i tried the following, but 'rowCountChanged' is never called.
class TableView : public QTableView
{
Q_OBJECT
public:
TableView(QWidget *parent = 0) : QTableView(parent)
{
}
protected Q_SLOTS:
void rowCountChanged(int oldCount, int newCount)
{
/// CP1
}
};
Bookmarks