Review Request: setWidget(QGraphicsWidget*) in Plasma::Dialog

Aaron J. Seigo aseigo at kde.org
Wed Aug 6 20:56:53 CEST 2008


On Wednesday 06 August 2008, Loïc Marteau wrote:
> Aaron J. Seigo wrote:
> > On Wednesday 06 August 2008, Loïc Marteau wrote:
> >> Here we embedded a qgraphicswidget inside a qwidget (Plasma::Dialog),
> >> why it is more relevant to do that and not directly provide a
> >> Plasma::GraphicsDialog who not inherits from qwidget but natively from
> >> qgraphicswidget ?
> >
> > because we need something to give to the windowing system to show, which
> > means a native window at some point (the top level item in this case).
> >
> > a QWidget can do this, but a QGraphicsWidget can't.
>
> It is what i supposed but applets are QGraphicsWidget too and have a
> qgraphicsitem for parent, it is not possible to use the same ?

QGraphics* are simply items that live on the QGraphicsScene canvas. they are 
not "real" windows in the sense used for a windowing system (X.org, Win23 or 
MacOS)

-- 
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080806/949156f4/attachment.pgp 


More information about the Plasma-devel mailing list