Re: [Qt-qml] Aliasing handler properties

2010-11-21 Thread aaron.kennedy
Hi,

On 19/11/2010, at 10:42 PM, ext 
simon.tur...@nokia.com wrote:

Why does this not work?

property alias onClicked: myEmbeddedMouseArea.onClicked

It’s just a property after all. Just one that’s just a function assigned to it.

When written like that it sounds trivial :)  In reality they're not "just" 
properties and they're not "just" assigned a function.  Of course, it is not an 
unreasonable thing to want to do, so if you create a bug we can look into it 
for a future release.

Cheers,

Aaron
___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml


Re: [Qt-qml] Aliasing handler properties

2010-11-19 Thread René Hansen
Try this instead:

id: parentElement
signal clicked


and in your 

MouseArea {
  onClicked: parentElement.clicked()
}


On Fri, 2010-11-19 at 12:42 +, ext simon.tur...@nokia.com wrote:
> Why does this not work?
> 
>  
> 
> property alias onClicked: myEmbeddedMouseArea.onClicked
> 
>  
> 
> It’s just a property after all. Just one that’s just a function
> assigned to it.
> 
>  
> 
> Regards,
> 
>  
> 
> Simon
> 
>  
> 
>  
> 
> 
> ___
> Qt-qml mailing list
> Qt-qml@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml


___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml


[Qt-qml] Aliasing handler properties

2010-11-19 Thread simon.turvey
Why does this not work?

property alias onClicked: myEmbeddedMouseArea.onClicked

It's just a property after all. Just one that's just a function assigned to it.

Regards,

Simon


___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml