QML widget for the Skrooge plasma dashboard
Guillaume DE BURE
guillaume.debure at gmail.com
Mon Dec 5 17:09:10 UTC 2011
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.debure at 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
More information about the Plasma-devel
mailing list