Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-28810

Add/Remove transitions for TextInput

    XMLWordPrintable

Details

    Description

      From the mailing list (Mark G.):

      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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martinj Martin Jones
            aalpert Alan Alpert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes