Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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