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

Aaron J. Seigo aseigo at kde.org
Wed Aug 6 20:27:29 CEST 2008


On Wednesday 06 August 2008, Loïc Marteau wrote:
> Is there case when qwidget is better to use than qgraphicswidget ?

usually when there's a ready made widget with interaction, such as buttons or 
drop downs.

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

-- 
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/977a45f1/attachment.pgp 


More information about the Plasma-devel mailing list