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

ListView currentIndex binding

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.3.0 Beta1
    • None
    • Ubuntu 12.04 LTS 32-bit on VirtualBox 4.3.10

    Description

      Let the currentIndex property of a ListView be bound to some property X defined on the parent of the ListView. If X is changed outside the ListView, the currentIndex is changed accordingly. So far so good.
      Problem arises after currentIndex is changed programmatically inside the list: then currentIndex seems to unbound and new changes on X doesn't reflect on it.

      On the attached file a TextBox.text and a ListView.currentIndex properties are bound to an int property (sex) defined on the parent. If, by clicking the button, sex changes, Text.text and the ListView.currentIndex change accordingly. After an option on the ListView is selected, consequent changes on sex by clicking the button are reflected on Text but not on ListView

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            laknoll Lars Knoll
            perencia Pedro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes