ListView Sections

  • Hi,

    How can i create view like in Mac Spotlight ?


    Section on left.

  • Url error

  • 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



Log in to reply

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