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

CLONE - QDataWidgetMapper only submits first field when using Manual Submit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.0.2, 5.1.0 RC1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 7, Qt 5.0.2, Qt 5.1.0 RC1

      Description

      When using a QDataWidgetMapper connected to a QSqlTableModel with ManualSubmit policy, only the first field being mapped to an widget will be updated correctly on submit call.

      Steps to reproduce:

      • Start app
      • Change the lineedits to 123 and 456
      • Hit the button
      • See how only 123 was submitted, the other one was set to bbbbb
        Expected output

        123
        456

        Actual output

        123
        bbbbb

      If you set the Submitpolicy of the mapper to AutoSubmit, everything works as intended, even the manual call to submit when clicking the button.

        Attachments

        1. main.cpp
          2 kB
        2. modified_main.cpp
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            albert76 Albert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes