Hi Stephen,

I assume your default means the declaration for myImage? Have you tried setting 
state="" (the default) ? This should revert the property values if the value 
change comes from a state change.

If this doesn't help - please provide a complete, runnable example to 
illustrate the problem.

Henrik

On 19. feb. 2010, at 14.59, ext Stephen Kelly 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