initial commit, basic project with basic components
This commit is contained in:
commit
269b48ed9d
11 changed files with 551 additions and 0 deletions
23
LenaPi/RectangularListDelegate.qml
Normal file
23
LenaPi/RectangularListDelegate.qml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import QtQuick 2.0
|
||||
|
||||
Rectangle{
|
||||
id: container
|
||||
width: 100
|
||||
height: width
|
||||
color: "blue"
|
||||
Image{
|
||||
id: contentImage
|
||||
source: "file:///home/ar/source/LenaPi/pics/benjamin.jpeg"
|
||||
anchors.centerIn: parent
|
||||
width: parent.width-10
|
||||
height: width
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
}
|
||||
MouseArea{
|
||||
id: controlObject
|
||||
anchors.fill: parent
|
||||
onClicked:{
|
||||
console.log("rectangle clicked")
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue