Next item



  • i'm making a listview and i want to change the width of the next item and let the other items with el normal width can i do it using qml



  • Sure. Set currentIndex in your listview, to the currently selected item. In your delegate, do something like: width: (view.currentIndex == (index-1)) ? bigWidth : normalWidth;

    Cheers,
    Chris.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.