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

ListView focus with VisualItemModel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 4.7.4, 4.8.x
    • None
    • Tested with qmlviewer for qt 4.7.4 and 4.8.0.

    Description

      When use a VisualItemModel in a ListView, the items which are flicked out of the visible area are not destroyed but all their child item'focus are set to false. The real problem is that they are not restored when they are re-flick in the visible area.
      I've dig in a bit and found that items's parent are set to null/removed from the graphicsScene when use in VisualItemModel, which cause all the focus chain to be set to false.
      the top Item focus handling is correct though.

      Attachments

        1. main.qml
          0.7 kB
        2. MyItem.qml
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            tipiak Alexandre Bossard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes