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

[SOLVED] Plasma::PopupApplet blank window

Tags: None
(comma "," separated)
cinas
Registered Member
Posts
21
Karma
0
Hi,
I wrote some small popup plasma applet containing few widgets and I've got some problem.
When I add applet from Plasma widget browser to the desktop it works fine, when I move applet from the desktop to the panel then click applet's icon it works fine (shows window containing widgets). But when I move applet directly from Plasma widget browser to the panel then click the icon, empty window opens (without any widgets). The same is if the applet is in the panel and I start KDE, clicked applet shows only bland window. I have no idea what is going on. :-(
Thank for help.
Marcin

Last edited by cinas on Thu Jun 25, 2009 8:31 am, edited 1 time in total.
cinas
Registered Member
Posts
21
Karma
0
I found a solution, main widget (QGraphicsWidget) must be created dynamically (using new operator).
cinas
Registered Member
Posts
21
Karma
0
and QGraphicsLayout needs to have parent object set to "this"


Bookmarks



Who is online

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