[Qt-qml] Aliasing handler properties

René Hansen ext-rene.1.hansen at nokia.com
Fri Nov 19 14:30:16 CET 2010


Try this instead:

id: parentElement
signal clicked


and in your 

MouseArea {
  onClicked: parentElement.clicked()
}


On Fri, 2010-11-19 at 12:42 +0000, ext simon.turvey at 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 at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml





More information about the Qt-qml mailing list