Expanding PlasmaCore.Dialog in Qml

Onur-Hayri Bakici thehayro at gmail.com
Thu May 26 14:22:10 CEST 2011


> On Monday 23 May 2011, Onur-Hayri Bakici wrote:
> > Hey,
> > 
> > When i use PlasmaCore.Dialog inside an Item with a fix height and width
> > Item {
> > 
> >   id: dialogItem
> >   height: 200
> >   width: 200
> >   
> >   PlasmaCore.Dialog {
> >   
> >     // some stuff
> >   
> >   }
> >   
> >   onEvent: {
> >   
> >     dialogItem.height += 32
> >   
> >   }
> > 
> > }
> > 
> > and try to change the height and width of the item(since dialog has no
> > height and width property), however the height property change is not
> > visible. Moreover does it change when I output the properties in the
> > terminal. Does anyone know what am I doing wrong?
> > 
> > thank you
> 
> the dialog is a top level widget/window (it's used to have standalone
> windows), and is not influenced  by its parent widget.
> instead, you put an Item inside the dialog and to control the size you
> either set the one of the dialog or its internal widget

Thank you for the clou, however I came across another limitation. The 
PlasmaCore.Dialog Component only requires a QGraphicsWidget as the mainItem. 
When I put a ListView into the QGraphicsWidget, it doesn't get displayed. Is 
there maybe any other way to bypass this problem?

Thank you


More information about the Plasma-devel mailing list