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

Can't use ListView.view in highlight delegate

XMLWordPrintable

      The line

      width: ListView.view.width + 300;

      in the highlighBar does not seem to be evaluated correcly. The width of the highlight is less than 300. If I change the width to just 300 the width of the highlight is 300.
      There is no error on the console.

      If I add

      y: ListView.view.currentIndex.y

      I get this error:

      file:///home/kde-devel/kde/src/KDE/kdepim/runtime/qml/kde/tests/elementmodel.qml:76: TypeError: Result of expression 'ListView.view' [null] is not an object.

      I guess those attached properties not attached to the highlight delegate yet, so probably should be.

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

            martjone Martin Jones (closed Nokia identity) (Inactive)
            steveire Stephen Kelly (Personal)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes