Am Donnerstag, 1. August 2019, 13:29:53 CEST schrieb David Edmundson: > ---------- Forwarded message --------- > From: David Edmundson <da...@davidedmundson.co.uk> > Date: Thu, Aug 1, 2019 at 11:14 AM > Subject: Re: Plasmoid in/with Python? > To: kde-devel <kde-devel@kde.org> > > > > It is possible to use Python to extend the QML view (especially since good > > RSS libraries exists for it)? I only found articles/tutorials for Plasma 4. > > Technically yes. > One can write a QML import in python, from the QML side it's then > exactly the same. > > https://www.riverbankcomputing.com/static/Docs/PyQt5/qml.html - > section Writing Python Plugins for qmlscene > > I've used this before, though there's a very annoying limitation if > you try to have 2 python plugins ever used in the same process. > I assume Qt official's new python will have something similar, I don't know. Interesting. Thank you.
> Note also KDE (now) has its own really good RSS/Atom parser library > libsyndication. We can make that have a QML import somewhere. That would be great. >From the C++ side, syndication seems to be exactly what I need. I will look into it. What I need (in QML) is something like this: ``` FeedModel { id: "tagesschau" source: "http://www.tagesschau.de/xml/atom/" } FeedModel { id: "spiegel" source: "https://www.spiegel.de/schlagzeilen/index.rss" } ``` With similar load and status attributes like XmlListModel. I'll try to create a wrapper. Gerion
signature.asc
Description: This is a digitally signed message part.