Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QStandardItemModel::removeRows() also deleting corresponding QStandardItems?

QStandardItemModel::removeRows() also deleting corresponding QStandardItems?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 716 Views
  • 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 Offline
    F Offline
    FreddyKay
    wrote on last edited by
    #1

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved