QfileSystemModel : removes rows that gaps can exist within them



  • since

    @ 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 ?


  • Moderators

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.