Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-14916

QSqlTableModel::removeRows() doesn't work consistently with QAbstractItemModel.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.7.2
    • 4.7.0
    • SQL Support
    • None
    • Tested under 64-bit Linux, Qt 4.7.0
    • bdd4a9149789f60974603e1f7621d51378f0a108

      I've written a small demo application demonstrating the bug. Calling
      insertRows(1, 2) on the QSqlTableModel inserts two rows into the model - as
      expected. But calling removeRows(1, 2) right afterwards only removes one of the
      previously inserted rows.

      I'm either fatally wrong here or this is at least inconsistent with what
      QAbstractItemModel defines, if not a bug in QSqlTableModel.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            the_isz Timo Schmiade
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes