Hi,

     I feel that both of them are required, when I want to notify something has 
been clicked.

something like.,

onClicked:{parent.opacity = 0.5} and this can be done on onPressed aswell.
onReleased:{parent.opacity = 1} but, to reset that I need onReleased. well, 
there can be ways to do this using Timer or even better ways.

This is simplest of all. I feel so.

Both onClicked and onReleased are needed.  (for Qwerty keyboard actions)

Br,
Rakesh.M
________________________________
From: [email protected] [mailto:[email protected]] On 
Behalf Of Ivan De Marino
Sent: Tuesday, May 04, 2010 1:50 PM
To: [email protected]
Cc: [email protected]
Subject: Re: [Qt-qml] MouseArea::onClicked and onReleased

I guess it's not really necessary.
After all, "onReleased" depend on a previous "onPressed".
So, if you want stuff to happen "onPressed" you can. If you want stuff to 
happen "onReleased" you use... whoever survived between "onReleased" and 
"onClicked".

To me, sounds like the one to "kill" is "onReleased".
But having a "MouseArea" that doesn't have a "onClicked" sounds weird...

On 4 May 2010 09:47, <[email protected]<mailto:[email protected]>> 
wrote:
http://doc.qt.nokia.com/4.7-snapshot/qml-mousearea.html#onReleased-signal
http://doc.qt.nokia.com/4.7-snapshot/qml-mousearea.html#onClicked-signal

Do we need both of these signals in MouseArea? Do they offer differing 
functionality? If not, should we drop one of them?

Cheers,
Henrik
--
Henrik Hartz, Senior Qt Product Manager
Qt Development, Nokia



_______________________________________________
Qt-qml mailing list
[email protected]<mailto:[email protected]>
http://lists.trolltech.com/mailman/listinfo/qt-qml




--
Ivan De Marino | Software Engineer | France Telecom R&D UK - Orange Labs
w. +44 20 8849 5806 | m. +44 7515 955 861 | m. +44 7974 156 216
ivan[dot]demarino[at]orange-ftgroup.com<http://orange-ftgroup.com> | 
ivan[dot]de[dot]marino[at]gmail[dot]com
www.detronizator.org<http://www.detronizator.org> | 
www.linkedin.com/in/ivandemarino<http://www.linkedin.com/in/ivandemarino>
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to