QAbstractItemModel how emit signal about rowCountChanged
-
Hi!
How in QAbstractItemModel emit signal about rowCountChanged?
Or how in QML TableView update rowCount?@Mihaill said in QAbstractItemModel how emit signal about rowCountChanged:
How in QAbstractItemModel emit signal about rowCountChanged?
The row count changes when you either insert or remove a row (or reset/clear model). Signals come from the
begin
/endInsert
/RemoveRows()
implementations.rowsInserted
/Removed()
signals --- see e.g. https://forum.qt.io/topic/48950/solved-qtablewidget-signal-for-rowcountchanged-needed/2. -
@Mihaill said in QAbstractItemModel how emit signal about rowCountChanged:
How in QAbstractItemModel emit signal about rowCountChanged?
The row count changes when you either insert or remove a row (or reset/clear model). Signals come from the
begin
/endInsert
/RemoveRows()
implementations.rowsInserted
/Removed()
signals --- see e.g. https://forum.qt.io/topic/48950/solved-qtablewidget-signal-for-rowcountchanged-needed/2. -