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

QSqlTableModel emits invalid index in dataChanged() (causing QSortFilterProxyModel ASSERT)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.8.5
    • 4.8.4
    • SQL Support
    • None
    • 771b34fb0c62f8c1e982dbcf256bc90ddaba64b7

    Description

      Attached you find a sample GUI program which shows the culprit.

      It uses a MySQL (MariaDB) table to insert and delete rows.

      First add two new rows using the "Add" button.
      Next remove them using the "Remove" button (select the row to delete in the table view).

      After pressing the secon time the "Remove" button the program aborts.

      Attached you find also a backtrace (qt and application was compiled in debug mode) when program aborts.

      Attachments

        1. SqlProblem.tar.gz
          4 kB
          Petric Frank
        2. SqlProblem-Backtrace.txt
          31 kB
          Petric Frank

        Activity

          People

            mabrand Mark Brand
            petric Petric Frank
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: