Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

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