Ktam3874/pitx software guide – Kontron KTAM3874-pITX User Manual
Page 223
Advertising

KTD-S0057-I
Page 219 Linux® Programming Examples (DebianTM)
KTAM3874/pITX Software Guide
anchors
{
right:
parent.right
rightMargin:
14
left:
parent.left
bottom:
parent.bottom
}
}
}
File Button.qml (header with Qt
TM
license see 'main.cpp'):
import QtQuick 1.0
Item
{
property alias image: icon.source
property variant action
signal
clicked
width:
40
height:
parent.height
Image
{
id:
icon
anchors.centerIn:
parent
opacity: if (action != undefined) { action.enabled ? 1.0 : 0.4 } else 1
}
MouseArea
{
anchors
{
fill:
parent
topMargin:
-10
bottomMargin:
-10
}
onClicked:
{
if (action != undefined)
action.trigger
()
parent.clicked
()
}
}
}
Advertising
This manual is related to the following products: