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

QDataWidgetMapper only submits first field when using Manual Submit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.0.2, 5.1.0 RC1
    • None
    • 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

            mabrand Mark Brand
            svkurowski Sascha Vincent Kurowski
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes