QML keysForSource failure.

Shaun Reich predator106 at gmail.com
Thu Jul 7 02:02:39 CEST 2011


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 :/

-- 
Shaun Reich,
KDE Software Developer (kde.org)


More information about the Plasma-devel mailing list