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

Loïc Marteau loic.marteau at gmail.com
Wed Aug 6 21:00:37 CEST 2008


Aaron J. Seigo wrote:
> 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)
>
>   
ok got it in fact we can only show in the canvas of the desktop, i have 
missed the case when we need to popup in front of other windows, thanks 
Aaron :)


More information about the Plasma-devel mailing list