Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. PathView currentItem
Qt 6.11 is out! See what's new in the release blog

PathView currentItem

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 3.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    ludde
    wrote on last edited by
    #1

    For some reason PathView in QML 1.1 does not have a currentItem property (like ListView and GridView do).
    (It has been added in 2.0, but that does not help me right now...)
    Can someone think of a workaround to this?
    I want to display a role value outside the delegate, and was planning to make the role available as a property of the delegate. But that is useless if I cannot get hold of the current item.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      task_struct
      wrote on last edited by
      #2

      Hello,

      may be you can use http://doc.qt.nokia.com/4.7-snapshot/qml-pathview.html#isCurrentItem-prop When it changes to true, call some function to get role and set it to other element that is outside delegate.

      Also see "this example":http://qt-project.org/wiki/Qt_Quick_Carousel#b8e7e3c65d9ba234a46708f7dc3d0097

      "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

      • Linu...
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved