Expanding PlasmaCore.Dialog in Qml

Marco Martin notmart at gmail.com
Mon May 23 18:33:35 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

-- 
Marco Martin


More information about the Plasma-devel mailing list