[Development] Idea: add transition capabilities to QML TextInput

Mark markg85 at gmail.com
Sat Dec 22 17:52:51 CET 2012


Hi,

The idea for this came from ListView. In a ListView you can define a
"add: Transition" and "delete: Transition" (among others).

With a TextInput the text itself is quite "static" as in there isn't
much to animate there or play with. It's just adding text (typing) or
removing text (backspace/delete) and that's it. The thing i'd like to
do in QML is have some animations when text is added or deleted.

The kind of animation i think of are:
for deleting: the deleted text drops out of the TextInput with some
animation or shader fun.
for adding: the added text smoothly fades+slides in

The animation part should obviously be left to the app creator. If the
Qt devs could provide transition capabilities just like ListView has
then it's perfect for me.

So, would it be possible to implement this in QtQuick 2.1 (or whatever
the next version is going to be)?

Right now this can already be done though in a very crude manner. By
making a own "TextInput" that uses a ListView, a ListModel and a bunch
of small Text elements. But that will obviously bring in a range of
difficulties that are already handles in ThextInput just fine.

Cheers,
Mark



More information about the Development mailing list