Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QStandardItemModel::removeRows() also deleting corresponding QStandardItems?

    General and Desktop
    1
    1
    641
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      FreddyKay last edited by

      Hey guys.

      topic says it all basically. I am removing entries in a QStandardItemModel and I am wondering of it does delete the entries at the same time. Like this:

      @
      void foo(){
      ValidModelFromSomewhere->removeRows(0, ValidModelFromSomewhere->rowCount());
      }@

      What if I would use ValidModelFromSomewhere->clear() instead? Would that have the same effect?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post