Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. currentindex
    Log in to post

    • UNSOLVED Sometimes page animation is not running when currentIndex is changed on a SwipeView
      QML and Qt Quick • animation swipeview currentindex • • jeanmilost  

      1
      0
      Votes
      1
      Posts
      33
      Views

      No one has replied

    • UNSOLVED ListView: position CurrentItem as last visible element?
      QML and Qt Quick • qml listview currentindex • • mks__  

      1
      0
      Votes
      1
      Posts
      49
      Views

      No one has replied

    • SOLVED TreeView “cursor” without focus?
      General and Desktop • treeview focus cursor currentindex qabstractitemvi • • -DLF-  

      10
      0
      Votes
      10
      Posts
      1105
      Views

      Hi, It seems I can go with the solution I described. I don't need the tree view to be focused, so I just removed the “focus rect” (if that is the name Qt people know ;)) by setting the focus policy of the tree to Qt.NoFocus. I draw the “cursor” then myself by giving a different backlog in QAbstractItemModel::data. That makes anyway sense since the cursor position is part of my domain model. Thanks for help and inspiration! Dan
    • SOLVED Getting CurrentIndex
      QML and Qt Quick • listview currentindex • • gabor53  

      4
      0
      Votes
      4
      Posts
      505
      Views

      @gabor53 If you can provide a complete example then I can see the issue first hand then as it seems like it should work, but it is hard to say without seeing it.
    • UNSOLVED How to set currentIndex of ListView to value other than 0 at start?
      QML and Qt Quick • listview currentindex • • Niltava  

      2
      0
      Votes
      2
      Posts
      4692
      Views

      @Niltava Hello, property int _index : 4 ListView { id: listView width: 180; height: 200 // currentIndex: _index Component.onCompleted : currentIndex = _index } like this your list will be set at index 4