[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Accessing a C++ dataengine from a QML plasmoid
From:       Marco Martin <notmart () gmail ! com>
Date:       2013-01-30 21:20:13
Message-ID: 201301302220.13488.notmart () gmail ! com
[Download RAW message or body]

On Wednesday 30 January 2013, Guillaume DE BURE wrote:
> However, I am not completely clear how to access it in QML. Userbase seems
> to say it should be possible:
> http://techbase.kde.org/Development/Tutorials/Plasma/QML/API#DataModel
> 
> So I made an attempt that looks like this, but that does not work:
> https://projects.kde.org/projects/extragear/office/skrooge/repository/revis
> ions/plasma-dashboard/entry/plugins/applet/account-qml/contents/ui/main.qml
> 
> Can anybody help me ? Thanks in advance :)

banksSource.data["Accounts"] is directly the data

for the model:

PlasmaCore.DataModel {
    dataSource: banksSource
    sourceFilter: "Accounts"
}

-- 
Marco Martin
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic