[Qt-qml] MouseArea::onClicked and onReleased

Rakesh.Mutharaju at tieto.com Rakesh.Mutharaju at tieto.com
Tue May 4 13:14:16 CEST 2010


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: qt-qml-bounces at trolltech.com [mailto:qt-qml-bounces at trolltech.com] On Behalf Of Ivan De Marino
Sent: Tuesday, May 04, 2010 1:50 PM
To: henrik.hartz at nokia.com
Cc: qt-qml at trolltech.com
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, <henrik.hartz at nokia.com<mailto:henrik.hartz at nokia.com>> 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
Qt-qml at trolltech.com<mailto:Qt-qml at trolltech.com>
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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100504/6c3b043a/attachment.html 


More information about the Qt-qml mailing list