[Qt-qml] why does signal clicked (MouseEvent mouse) not parse

bea.lam at nokia.com bea.lam at nokia.com
Mon Dec 6 06:00:34 CET 2010


On 06/12/2010, at 10:09 AM, ext Bartosh Wroblevksy wrote:

> Thanks, but I was hoping I can do something like this:
> 
> //Example Button Component
> Item {
> id: rootElement
> signal clicked(MouseEvent mouse)
> 
> ...
> 
> MouseArea {
> anchors.fill: parent
> onClicked: {
> rootElement.clicked( mouse );
> }
> }
> }
> 

Using a "variant" type instead of "MouseEvent" seems to do the trick.






More information about the Qt-qml mailing list