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

KTD-S0057-I
Page 228 Linux® Programming Examples (DebianTM)
KTAM3874/pITX Software Guide
states:
State
{
name:
"visible"
when: container.orientation == Qt.Vertical ? scrollArea.movingVertically : scrollArea.movingHorizontally
PropertyChanges
{
target:
container
opacity:
1.0
}
}
transitions:
Transition
{
from:
"visible"
to:
""
NumberAnimation
{
properties:
"opacity"
duration:
600
}
}
}
File UrlInput.qml (header with Qt
TM
license see 'main.cpp'):
import QtQuick 1.0
Item
{
id:
container
property alias image: bg.source
property alias url: urlText.text
signal urlEntered (string url)
signal
urlChanged
width:
parent.height
height:
parent.height
BorderImage
{
id:
bg
rotation:
180
x:
8
width: parent.width - 16
height:
30
anchors.verticalCenter:
parent.verticalCenter
border
{
left:
10
top:
10
right:
10
bottom:
10
}
}