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

Loïc Marteau loic.marteau at gmail.com
Wed Aug 6 20:48:38 CEST 2008


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 ?

Thanks !!




More information about the Plasma-devel mailing list