Qt Components Hildon  0.20
QML components for Maemo5 with Hildon styling.
 All Classes Functions Properties Groups Pages
file.qml
import QtQuick 1.0
import org.hildon.components 1.0
import org.hildon.utils 1.0
Window {
id: window
title: qsTr("File Example")
visible: true
Column {
id: column
anchors {
left: parent.left
right: parent.right
top: parent.top
}
width: parent.width
text: qsTr("File name")
}
id: fileNameField
width: parent.width
}
id: button
width: parent.width
text: qsTr("Read file")
onClicked: edit.text = file.readAll()
}
width: parent.width
text: qsTr("Result")
}
id: edit
width: parent.width
readOnly: true
}
}
File {
id: file
fileName: fileNameField.text
onError: console.log(errorString)
}
}