View Single Post
Posts: 578 | Thanked: 994 times | Joined on Dec 2012
#3
I use something like that in my apps:
Code:
import QtQuick 2.0
import Sailfish.Silica 1.0

Page {
    id: page

    SilicaFlickable {
        anchors.fill: parent
        contentHeight: column.height

        PullDownMenu {
        }
        Column {
            id: column
            width: page.width

            PageHeader {
                id: pageHeader
                title: qsTr("UI Template")
            }
            SilicaListView {
                id: listView
                width: parent.width
                height: page.height - pageHeader.height

                clip: true

                model: 40

                delegate: BackgroundItem {
                    Label {
                        text: index
                        font.pixelSize: Theme.fontSizeMedium
                        anchors.verticalCenter: parent.verticalCenter
                    }
                }
            }
        }
    }
}
 

The Following User Says Thank You to elros34 For This Useful Post: