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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Out of scope
    • Affects Version/s: 4.5.1
    • Fix Version/s: Some future release
    • Component/s: SQL Support
    • Labels:
      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

            Assignee:
            mabrand Mark Brand
            Reporter:
            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