dictionary widget QML

Marco Martin notmart at gmail.com
Mon Feb 6 09:32:55 UTC 2012

On Mon, Feb 6, 2012 at 6:44 AM, Shaun Reich <shaun.reich at kdemail.net> wrote:
> bit of a snag...how can i create a model/listview from
> plasmasource.data["list-dictionaries"] ?
> there's 1 source which has many keys and values, as you'll see by
> requesting that source from plasmaengineexplorer.
> thought of a model of a model, but that's not possible ;-p
> got to be an easy way...

you can try to use directly plasmasource.data["list-dictionaries"] as
model then access it by modeldata.
if it fails, a ListModel has to be built by hand by iterating over the
properties of the plasmasource.data["list-dictionaries"] object

More information about the Plasma-devel mailing list