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

CLONE - QDataWidgetMapper only submits first field when using Manual Submit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.0.2, 5.1.0 RC1
    • None
    • Windows 7, Qt 5.0.2, Qt 5.1.0 RC1

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes