This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Using kparts with QML/QtQuick 2?

Tags: None
(comma "," separated)
User avatar
acidrums4
Registered Member
Posts
48
Karma
0
OS

Using kparts with QML/QtQuick 2?

Mon Jun 04, 2018 5:50 pm
Disclaimer: I'm a total newbie on QML. But to be fair, seems it's not so difficult to get into it. I'm not an experienced programmer either but I do know the basics of Javascript, PHP and Python. But every time I want to dive into C++ I end with a huge headache.

So with that background I want to port a Konsole plasmoid (not digging calling them "widgets") to Plasma 2 - I want to keep using my current Konsole profile and settings, so I'd pass on the "termoid" plasmoid, but alas seems there's nothing more than it for Plasma 2 so I decided to try to take this. There were some cool plasmoids for SC4 that ended on OpenDesktop's graveyard - for example:

https://github.com/JustinBuser/Konsole-Widget

But I looked everywhere and I couldn't find no example, documentation or anything about how to use KParts with QML/Qtquick. There was a similar question, but seems it wasn't actually answered - the solutions given were for C++ implementation:

viewtopic.php?f=64&t=101742

The closest things I could find were kdeconnect and Marble implementations, but seems they aren't actually implemented as KParts but with some kind of internal API:

https://marble.kde.org/dev-intro.php

So I was wondering if the same should be for a Konsole-based plasmoid, and where to look for its API or hooks to use with QML, or if there's a more "global" way to use KParts with QML/QtQuick.

Looking forward for your advice. Thanks! (:


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]