Le lundi 5 décembre 2011 11:25:56 Viranch Mehta a écrit : > Hi, > > On Mon, Dec 5, 2011 at 12:50 AM, Guillaume DE BURE < > guillaume.deb...@gmail.com> wrote: > > > > > file:///.../main.qml:36: Unable to assign [undefined] to QString text > > > > That would indicate that there is no source connected, right ? So what did > > I > > do wrong ? > > > > The DataSource has no property called "count". Hence [undefined]. You can > have a look at the API here: > http://techbase.kde.org/Development/Tutorials/Plasma/QML/API#DataSource Ah yes, thanks, messed up with the dataModel property... I read again this page, so I hope I'm not making other obvious mistakes !
> > Also, since you've already declared connectedSources in the DataSource, you > don't need to redo it inside Component.onCompleted ;) Yes, that was duplicated as a desperate attempt at getting some data from the dataengine :) I think I am now connected to my dataengine, let's see if I can manage to loop through its data ;) > > Cheers, > Viranch Thanks for the help, Guillaume _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel