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( mo
qt-qml@trolltech.com
> Date: Sun, 5 Dec 2010 14:30:23 +0100
> Subject: RE: [Qt-qml] why does signal clicked (MouseEvent mouse) not parse
>
> Hi Bartosh,
> Mouse events in QML should be handled using a MouseArea component, and then
> the signal should be passed to the parent compon
Cheers,
David
From: qt-qml-boun...@trolltech.com [qt-qml-boun...@trolltech.com] On Behalf Of
ext Bartosh Wroblevksy [bart...@live.com]
Sent: 05 December 2010 01:05
To: qt-qml@trolltech.com
Subject: Re: [Qt-qml] why does signal clicked (MouseEvent mouse
Hi,I am bit confused. why does this line not parse in QML, Qt 4.7.0signal
clicked (MouseEvent mouse)I get this message:Expected parameter type signal
clicked (MouseEvent mouse)
^How am I supposed to propagate a MouseEvent if I can't do this?Th