[email protected] wrote:

> Hi,
> 
> PropertyChanges { target: myimage; width: undefined; height: undefined; }
> is what your looking for.  The use of JavaScript's undefined is a little
> peculiar, but if you think of it as "a value I didn't define" it makes
> sense :)


Perfect. I forgot how close QML is to javascript there for a bit.

Thanks,

Steve.

> 
> Cheers,
> 
> Aaron
> 
> 
> On 19/02/10 11:59 PM, "ext Stephen Kelly" <[email protected]> wrote:
> 
> Hi,
> 
> I have something like this:
> 
> Image {
>   id : myimage
>   source: mysource
>   width : 20; height : 20
> }
> 
> State {
>   name : "unscaled"
>   PropertyChanges{ target: myimage; width: default height: default }
> }
> 
> Setting the properties to default does not work.
> 
> Is there any way to unset properties in qml?
> 
> 
> All the best,
> 
> Steve.
> 
> _______________________________________________
> Qt4-preview-feedback mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to