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

QDataWidgetMapper does not allow mapping to other properties

    XMLWordPrintable

Details

    Description

      QDataWidgetMapper should support the ability to map a widget multiple times when the mapping involves a different property of the widget and the combination of a different model index. There are many use cases for this where you would want to map different parts of your model to different properties of the same widget.

      mapper>addMapping(ui>checkBox, 0, "checked");
      mapper>addMapping(ui>checkBox, 1, "acceptDrops");
      

      This would be easy to change because the decision to disallow these mappings is simply arbitrary, the checks should simply be changed to allow this use case.

      Attachments

        1. ManyMapperExample.zip
          5 kB
        2. notext.png
          notext.png
          18 kB
        3. text.png
          text.png
          18 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            RobertBColton Robert B. Colton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes