[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Can a QGraphicsWidget be added to Corona?
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2008-07-27 15:23:40
Message-ID: 200807270923.49568.aseigo () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Sunday 27 July 2008, Dong Tiger wrote:
> the scene by applet()->scene()->addItem(this_widget). It works fine but
..
> Is there any thing wrong to do so? Or should I use a Containment for this?
you should never be adding an item directly to the scene like this as you can
not know what will happen to it. this is because plasma does a lot of
management of the items, and provides no guarantees beyond the containment-
>applet relationship.
if you want the item to appear associated with hte widget, then you should
just create the item as a child of your applet(). this will keep it with your
widget, automatically add it to the scene (properly), etc...
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Trolltech
["signature.asc" (application/pgp-signature)]
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic