Containments, Layouts
Alexis Ménard
darktears31 at gmail.com
Mon May 26 15:41:51 CEST 2008
On Mon, May 26, 2008 at 4:17 PM, Oszkar Ambrus <oszkar.ambrus at deri.org>
wrote:
> Alexis Ménard wrote:
> >
> > 1) One of the main problems is, that the null or "" default
> > Containment
> > is not created, and my custom applets wouldn't move or allow
> resizing.
> > Should I develop a custom Containment? Can I find some documentation
> > about it?
> >
> >
> > api.kde.org <http://api.kde.org> you have the documentation of
> > containment. But you don't need a containment to resize an applet of
> > course you can use it alone.
> I'm using Containment as a container for my applets in my workspace.
See
http://websvn.kde.org/trunk/KDE/kdebase/workspace/plasma/containments/desktop/desktop.cppwich
is the containment for the desktop where applet are free to move.
>
> >
> >
> >
> >
> > 2) When I use QGraphicsLayout (actually it's QGraphicsLinearLayout)
> > inside an applet (for LineEdits and PushButtons), the application
> > always
> > crashes, when I remove that applet.
> >
> >
> > You put embeeded widget with QGraphicsProxyWidget? If yes, you have to
> > remove your applet from the scene before deleting it.
> No, I didn't use QGraphicsProxyWidget. I added QGraphicsWidget items,
> like Plasma::LineEdit and Plasma::PushButton.
> Do they need to be removed too?
If you use PushButton from recent Plasma API you use QGraphicsProxyWidget
because they are proxywidget, so before deleting your applet that contains
your button and your line edit remove it in the scene before. But if you
call destroy on your applet, if it's the case it's automatically done by the
applet class.
>
> >
> >
> >
> >
> > Thanks a lot,
> > Oszkar
> >
> _______________________________________________
> Panel-devel mailing list
> Panel-devel at kde.org
> https://mail.kde.org/mailman/listinfo/panel-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/panel-devel/attachments/20080526/bb4e4ad5/attachment.html
More information about the Panel-devel
mailing list