QML/Data Engine Part 2

Sebastian Kügler sebas at kde.org
Tue Jan 24 08:46:21 UTC 2012


On Tuesday, January 24, 2012 08:43:49 Eric Mesa wrote:
>  Here's an interesting little tidbit that might make this all finally work
> correctly.
> 
> If I add this in:
> 
> def sources(self):
>     sources = ["1500"]
>     return sources
> 
> to my engine - then whenever it's connected to, it grabs the data into the
> engine.  So it looks like the data was empty otherwise, even if I used
> plasmaengineexplorer to make sure data was in there first.  The question
> is - is this the right thing to do?  Or is there a way of telling it to
> grab the data as it's requested by my plasmoid?  When I add i the rest of
> my sources it will take a while for the data to be available.

plasmaengineexplorer starts a different process, so what happens in there 
doesn't happen in your plasmoid, they're entirely different things. You have 
to populate the dataengine from your plasmoid, using 
dataSource.connectSource(bla).
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9


More information about the Plasma-devel mailing list