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. How to get currentItem in pathview
Qt 6.11 is out! See what's new in the release blog

How to get currentItem in pathview

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 2.5k 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.
  • H Offline
    H Offline
    hoozi
    wrote on last edited by
    #1

    I found it is fixed
    https://bugreports.qt.nokia.com/browse/QTBUG-16347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel#issue-tabs

    but, Fix Version/s: QtQuick 2.0

    now , have some Temporary solution ??

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbrasser
      wrote on last edited by
      #2

      Can you give any more detail about how you want to use currentItem? Depending on the use, you might be able to use the "isCurrentItem":http://doc.qt.nokia.com/4.7/qml-pathview.html#isCurrentItem-prop attached property instead.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hoozi
        wrote on last edited by
        #3

        some complex,

        I want to made a Scene to switch some Items (ItemA, ItemB, ItemC), they aleady exist.
        PathView in Scene .

        Situation 1: enter switch Scene
        i want ItemA move to pos of currentItem in pathview .
        or, Better way, Replace currentItem use Item

        Situation 2: exit switch Scene
        PathView Disappear , i want currentItem reparent from PathView , move the currentItem to the new pos

        In general, use PathView just Only a temporary way

        Real demand is : How to let Items move in path ,, without use PathView ??

        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