[Qt-qml] activeFocusOnPress use-case

michael.brasser at nokia.com michael.brasser at nokia.com
Mon Nov 1 03:58:42 CET 2010


Hi Henrik,

activeFocusOnPress was added as a convenience property for a behavior that we didn't want to be hard-coded into TextInput (the same is true for selectByMouse). The idea was that as a "basic" element, TextInput should be flexible enough for people to experiment with and define new ways of handling text interaction, while still making it easy to turn on "standard desktop behavior" where needed. (Using a long press or double-click to activate text editing, or having an "edit" button next to the field to begin the editing might be some examples of where you'd want to disable activeFocusOnPress).

Regards,
Michael

On 29/10/2010, at 11:29 PM, ext henrik.hartz at nokia.com<mailto:henrik.hartz at nokia.com> wrote:

Hi,

what is the use-case for http://doc.qt.nokia.com/4.7-snapshot/qml-textinput.html#activeFocusOnPress-prop? Is it a different way of setting read-only? Which use-cases would you want to disable active focus when clicking into a textinput?

Cheers,
Henrik
<ATT00001..txt>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101101/6e34d79d/attachment.html 


More information about the Qt-qml mailing list