Plasma & Python in KF5; was Re: Having an issue with the minimum size of Plasma.WebView
Marco Martin
notmart at gmail.com
Wed Jan 16 13:44:24 UTC 2013
On Wednesday 16 January 2013, Sebastian Kügler wrote:
> On Wednesday, January 16, 2013 11:41:05 Aaron J. Seigo wrote:
> > the possibility exists for us to support Applets which are written in
> > python but which use QML for the user visible parts. you'd still need to
> > write and ship QML, but maybe you could do some behind-the-scenes parts
> > in python. the question is: why?
>
> [...]
>
> > as such, i don't see any reason to support writing Applets in a
> > python+QML hybrid form.
>
> Not for the UI itself, no.
>
> In Randa, the idea was to make it possible to write classes that are
> accessible from the QML runtime in Python, and IMO that would be very
> useful.
>
> So you'd write a set of QObject deriven classes in Python (you can use
> various existing third party libraries for that, if you wish so), but they
> don't have any UI in them, they just offer non-visual extensions.
the problem, if i understood correctly is that the properties, signals and
slots defined in those python classes would not visible from qml, due to how
it internally works (they are not in the static metadata object that can't be
touched at runtime, at least not outside of Qt)
--
Marco Martin
More information about the Plasma-devel
mailing list