Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Inconsistency between model and view while removing a row from a table.

Inconsistency between model and view while removing a row from a table.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlmodel view progmodelview
2 Posts 2 Posters 321 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.
  • A Offline
    A Offline
    Ahti
    wrote on 24 Jan 2020, 11:53 last edited by
    #1
    This post is deleted!
    J 1 Reply Last reply 24 Jan 2020, 12:20
    0
    • A Ahti
      24 Jan 2020, 11:53

      This post is deleted!

      J Offline
      J Offline
      JonB
      wrote on 24 Jan 2020, 12:20 last edited by
      #2

      @Ahti
      Perhaps not relevant, but can't help noticing: your removeRows and its call to beginRemoveRows() correctly allows for multiple rows, but your call to response = model->removeRow(first, QModelIndex()); only allows for one row. That's works for your del_row(), but not in general. I don't suppose fixing that changes behaviour?

      1 Reply Last reply
      0

      2/2

      24 Jan 2020, 12:20

      • Login

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