![]() Registered Member ![]()
|
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.
|
![]() Registered Member ![]()
|
I found a solution, main widget (QGraphicsWidget) must be created dynamically (using new operator).
|
![]() Registered Member ![]()
|
and QGraphicsLayout needs to have parent object set to "this"
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]