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

QTableView shows empty rows with QSqlTableModel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • Some future release
    • 4.3.3
    • SQL Support
    • None

    Description

      In bug [170783] that caused empty rows to be displayed in a
      QTableView when a new model was set on the view. This was caused by
      QSqlTableModel emitting the rowsAboutToBeInserted() and rowsInserted()
      signals even when the new model was empty.

      However, this problem seems to be still exist in QSqlQueryModel (in some cases like sqllite this is the only choice). When the first model returns no rows (a select that return no row) and then the next query returns rows the QTableView shows many empty rows.

      Attachments

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

        Activity

          People

            bilking Bill King
            z35liu Zheng Liu (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes