Hi,
I have tried the pageloader.item.running = true , I get the same error
"Cannot assign to non-existent property "running".
FYI; My \\Test1.qml<file://\\Test1.qml> file is simple
Item{
id: test1Itemid
width: 50
height: 50
Text{
id: textItemid
text: "test timer"
}
resources:[
Timer{
id:statustimer
interval: 1000; running: false; repeat: true;
onTriggered: {
textItemid.text = "timer expired"
}
}
]
}
How to set the statustimer as runnining, if this .qml file is loaded by
test.qml loader "pageloader".
With best regards,
Rakesh.M
________________________________
From: [email protected] [mailto:[email protected]] On
Behalf Of [email protected]
Sent: Tuesday, May 11, 2010 10:11 AM
To: [email protected]
Subject: [Qt-qml] Accessing resources of item loaded using Loader.
Hi,
How to access resources of Item say \\ Test1.qml using Loader{id:
pageloader; source: "Test1.qml} \\ test.qml file.
I have a timer in resources of the Item and I want to set "running = true"
I tried pageloader.resources[0].running = true -->>> error message: invalid
property "running" and also pageloader.item.resources[0].running = true -->> No
error , but nothing happens as noticed in the documentation that Item [Read
only]. Neither of them serve the purpose.
Thanks and Regards,
Rakesh
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml