Help: Creating a plasma 5 widget/plasmoid using QML and C++

Kevin Krammer krammer at kde.org
Sun Jul 3 11:38:06 UTC 2016


On Sunday, 2016-07-03, 15:01:22, Aditya Mehra wrote:
> Iv looked into this and was using the same minimal template, The issue
> still is I cant find a way to initialize the DBus adaptor without having a
> main, I did follow the KDE4 DBus tutorials initially on getting the DBus to
> work as KDE 5 has no DBus documentation yet for plasmoids.

You don't need a main() for that, any C++ method that is executed will do, 
e.g. your applet's constructor.

From the template it seems that should already be instantiated.
Can you access the "nativeText" property in your QML file?

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160703/53ec4ac8/attachment-0001.sig>


More information about the Plasma-devel mailing list