// this seems wrong.  ListView doesn't heed column/row -- change to
repeater acts as expected.

import QtQuick 2.5
import QtQuick.Controls 1.4

ApplicationWindow {
    width: 400
    height: 400
    visible: true
    Column {
        anchors.fill: parent
        Row {
            Label {
                text: 'Hello'
            }
        }
        ListView {
            height: childrenRect.height
            id: view
            header: Row {
                Label { text: 'Model - ' + view.model.count }
            }
            footer: Row {
                Label { text: 'Footer'}
            }
            model: ListModel {
                ListElement {
                    modeltext: 'World'
                }
                ListElement {
                    modeltext: 'Testing'
                }
            }
            delegate: Row {
                Label { text: modeltext }
            }
        }
    }
}
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to