Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

ListView Sections

$
0
0
Ok, You have to use QtQuick `ListView` type for list in that order and `Image` type of placing image before the list. Here’s the general code: Rectangle {     ListModel {     id : newModel      ListElement {name: "TextMate"}      ListElement {name: "TextMate"}      ListElement  {name: "Activity Monitor"}   }  Component  {    id: newDelegate     Text {          // Define text property    }  }     ListView {   model: newModel delegate: newDelegate     // It refers to delegate above width: parent.width height: parent.height     }     }

Viewing all articles
Browse latest Browse all 4972

Trending Articles