little breakthrought im QML Layouts
This commit is contained in:
37
qml/dummyview.qml
Normal file
37
qml/dummyview.qml
Normal file
@@ -0,0 +1,37 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Window
|
||||
|
||||
ApplicationWindow
|
||||
{
|
||||
visible: true
|
||||
width: 600
|
||||
height: 400
|
||||
title: "TableView mit myChildModel"
|
||||
|
||||
TableView
|
||||
{
|
||||
anchors.fill: parent
|
||||
clip: true
|
||||
columnSpacing: 1
|
||||
rowSpacing: 1
|
||||
|
||||
model: myChildModel
|
||||
|
||||
delegate: Rectangle
|
||||
{
|
||||
implicitWidth: 150
|
||||
implicitHeight: 40
|
||||
border.color: "#cccccc"
|
||||
//color: index % 2 === 0 ? "#f9f9f9" : "#e0e0e0"
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
text: display
|
||||
font.pixelSize: 14
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user