Hi,
I have the following code which I thought would remove a certain amount of rows from my table model :
beginRemoveRows
( QModelIndex(),
0, m_Data.
count() / 4 );
for( int i = 0; i < m_Data.count() / 4; i++ )
m_Data.clear();
endRemoveRows();
beginRemoveRows( QModelIndex(), 0, m_Data.count() / 4 );
for( int i = 0; i < m_Data.count() / 4; i++ )
QAbstractItemModel::removeRow( i );
m_Data.clear();
endRemoveRows();
To copy to clipboard, switch view to plain text mode
m_Data is a QList<QString> object. After this function is called, the rows are still there? Guess I'm doing something wrong
Any help is appreciated,
Regards,
Steve
Bookmarks