QML keysForSource failure.

Marco Martin notmart at gmail.com
Thu Jul 7 11:29:43 CEST 2011


On Thursday 07 July 2011, Shaun Reich wrote:
> I'm using the following code:
> 
> model : PlasmaCore.DataModel {
>     dataSource: mainEngineSource.keysForSource["name"]
> }
> 
> Yet I keep receiving:
> 
> main.qml:100: Unable to assign [undefined] to QObject* dataSource
> 
> I thought perhaps this meant that there -was- no datasource by that
> string. But I did a query inside the dataengine itself, and it says
> it's there :/

that's a method ;)
mainEngineSource.keysForSource("name")

-- 
Marco Martin


More information about the Plasma-devel mailing list