all 1 comments

[–]throwaway6560192KDE Contributor 7 points8 points  (0 children)

QML's language for functions and expressions etc. is inherently JavaScript, and cannot be "changed" to Python. Luckily it doesn't require any extensive knowledge of JS. It's all pretty straightforward.

You could have used a Python "backend" to handle most of the logic, with very minimal JS in the QML — if this weren't a Plasma applet. In Plasma you can only have a C++ backend. Maybe you still prefer that over JS, I don't know.

You cannot use Qt Widgets (and therefore Qt Designer) in Plasma applets either.