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

QDataWidgetMapper::toPrevious() may not work when model is QSql(Relational)TableModel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • Some future release
    • 4.5.1
    • SQL Support
    • None

    Description

      QDataWidgetMapper::toPrevious() does not work if the model is QSqlTableModel, or the model is QSqlRelationalTableModel and the item delegate is QSqlRelationalDelegate, and the model's edit strategy is OnFieldChange or OnRowChange.

      This is reproducible with the SQL Widget Mapper example by commenting out the setEditStrategy() call in setupModel().

      It is also reproducible by modifying the example to use a QSqlTableModel instead of a QSqlRelationalModel, using the data widget mapper's default item delegate and setting the edit strategy to OnFieldChange or OnRowChange.

      Attachments

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

        Activity

          People

            mabrand Mark Brand
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes