> Does anyone know if there are plans to make TextInput elements show a
> standard I-beam cursor, instead of the regular mouse pointer? This is
> very important as currently the user has no way to know which text
> elements are editable without trying to click them.

Partly, this is a question of look and feel. While it may seem that QML 
provides a text editing widget, it doesn't. It just provides the parts of such 
an element that need to be implemented in C++.

How a field is indicated as editable will depend on the look and feel of the 
components made using QML. I would not recommend that the appearance of the 
mouse cursor be the (only) way editability is discoverable.

> to specifiy cursor shapes for elements. I've reported it as a bug a
> while ago: http://bugreports.qt.nokia.com/browse/QTBUG-10642

It should be pretty easy to make a plugin element that works like this:

import com.gmail.schlomoff.gregory.cursors 1.0
TextEdit {
    CursorArea { shape: CursorArea.Arrow; anchors.fill: parent }
}

since QGraphicsItems already supports QCursors.

Of course, such cursors only make sense when a mouse cursor is actually visible 
(i.e. not a touch screen), which would be another good reason to encapsulate 
such look and feel into a high level component.

--
Warwick

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

Reply via email to