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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes