import QtQuick 2.2 import QtQuick.Controls 1.2 ApplicationWindow { property int tableColumnWidth: 75 visible: true width: 640 height: 480 TableView { id: table anchors.fill: parent anchors.margins: 5 model: tableModel TableViewColumn { width: tableColumnWidth ; title: "A" ; role: "a" } TableViewColumn { width: tableColumnWidth ; title: "B" ; role: "b" } TableViewColumn { width: tableColumnWidth ; title: "C" ; role: "c" } TableViewColumn { width: tableColumnWidth ; title: "D" ; role: "d" } TableViewColumn { width: tableColumnWidth ; title: "E" ; role: "e" } TableViewColumn { width: tableColumnWidth ; title: "F" ; role: "f" } TableViewColumn { width: tableColumnWidth ; title: "G" ; role: "g" } TableViewColumn { width: tableColumnWidth ; title: "H" ; role: "h" } TableViewColumn { width: tableColumnWidth ; title: "I" ; role: "i" } TableViewColumn { width: tableColumnWidth ; title: "J" ; role: "j" } TableViewColumn { width: tableColumnWidth ; title: "K" ; role: "k" } TableViewColumn { width: tableColumnWidth ; title: "L" ; role: "l" } } ListModel { id: tableModel Component.onCompleted: { for (var i = 1; i <= 30; i++) { append({"a": 123456789, "b": 123456789, "c": 123456789, "d": 123456789, "e": 123456789, "f": 123456789, "g": 123456789, "h": 123456789, "i": 123456789, "j": 123456789, "k": 123456789, "l": 123456789}) } } } }