ganeshgladish
16th March 2013, 19:34
anyone please help me,
i can't retrieve my data from qml database here is my code,
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import "storage.js" as Storage
Rectangle {
width: 1200
height: 700
color:"white"
TextInput
{
id: userInput
width: parent.width-6
height: parent.height-6
anchors.centerIn: parent
font.pixelSize: 20
font.bold: true
maximumLength: 15
color: "red"
text: ""
}
Rectangle{
id:button
width: 100
height:50
color: "green"
x:100
y:100
MouseArea
{
id:save
anchors.fill: parent
onClicked:{
// rectangle1.width = (rectangle1.width+25);
Storage.getDatabase(userInput.text);
// rectangle1.findScores(userInput.text);
}
}
}
Rectangle{
id:button12
width: 500
height:50
color: "green"
x:150
y:150
TextInput
{
id: qwet
width: parent.width
height: parent.height
x:150
y:150
anchors.centerIn: parent
font.pixelSize: 20
font.bold: true
maximumLength: 15
color: "red"
text:'' ''
}
MouseArea
{
id:save123
anchors.fill: parent
onClicked:{
// qwet.text= ; //this line i want get my data please tell me how to retrieve
}
}
}
}
i can't retrieve my data from qml database here is my code,
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import "storage.js" as Storage
Rectangle {
width: 1200
height: 700
color:"white"
TextInput
{
id: userInput
width: parent.width-6
height: parent.height-6
anchors.centerIn: parent
font.pixelSize: 20
font.bold: true
maximumLength: 15
color: "red"
text: ""
}
Rectangle{
id:button
width: 100
height:50
color: "green"
x:100
y:100
MouseArea
{
id:save
anchors.fill: parent
onClicked:{
// rectangle1.width = (rectangle1.width+25);
Storage.getDatabase(userInput.text);
// rectangle1.findScores(userInput.text);
}
}
}
Rectangle{
id:button12
width: 500
height:50
color: "green"
x:150
y:150
TextInput
{
id: qwet
width: parent.width
height: parent.height
x:150
y:150
anchors.centerIn: parent
font.pixelSize: 20
font.bold: true
maximumLength: 15
color: "red"
text:'' ''
}
MouseArea
{
id:save123
anchors.fill: parent
onClicked:{
// qwet.text= ; //this line i want get my data please tell me how to retrieve
}
}
}
}