Still cannot access QMap in QML

Aaron J. Seigo aseigo at kde.org
Thu Jun 9 12:10:10 CEST 2011


On Wednesday, June 8, 2011 23:20:02 Viranch Mehta wrote:
> print(dataEngine.data["PowerDevil"]["Available profiles"]);

wait .. what is "dataEngine"? is it the actual dataEngine? or? it's entirely 
impossible to tell what this code is actually doing without a bit more 
context. 

if dataEngine is really dataEngine("powermanagement") then there is no way 
that will work; i'll bet you're getting an error message about how data is not 
an object in dataEngine, right?

what you need to do is connect the PowerDevil source to a function or the 
plasmoid object. see:

http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/DataEngine

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20110609/f59207d8/attachment.sig 


More information about the Plasma-devel mailing list