Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QfileSystemModel ： removes rows that gaps can exist within them
redstoneleo last edited by
@ bool QAbstractItemModel::removeRows ( int row, int count, const QModelIndex & parent = QModelIndex() )@
can only removes rows in one piece, next to each other without any gaps.
but I want to removes rows that gaps can exist within them ,so how to implement it ?
By calling removeRows repeatedly.
If you need to do a lot of reorganization, then you might want to claim the model has changed completely instead using the modelReset related functionality.