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

Plasma Embedded in an Application?

Tags: None
(comma "," separated)
LastGuyonEarth
Registered Member
Posts
16
Karma
0

Plasma Embedded in an Application?

Fri Jun 19, 2009 11:48 pm
I've been thinking about this for a while. Some applications, such as Amarok, use Plasma and specially designated Plasmoids to create the Context View. This is done by embedding a Plasma container inside of an application, I'd imagine.

Is there somewhere that I can find some documentation on how to specifically do this? The idea of Plasma-based controls on certain applications is a promising concept to me, and I'd love to start tinkering around with it more!


"As the Days change like weather, all of you must know:
Everything gets better. Everything regrows."

-Forest, from "Under an Iron Tree" by Sean Tilley
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS
There is not anything special about embedding plasma in applications.

Just create a QGraphicsView and show Plasma::Corona (inherits QGraphicsScene) in it. Then, add applets to Corona.

For further info, just read the API docs about those classes, and that's that :)


Image


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]