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

Unification and/or feature parity for TextInput/TextField and TextEdit/TextArea

    XMLWordPrintable

Details

    Description

      TextInput is a single-line plain text editor, while TextEdit is a multi-line rich text editor. They are inherited by TextField and TextArea respectively

      There is lots of duplicated functionality between them (e.g. the `activeFocusOnPress` property and the `editingFinished()` signal), but some functionality is only available in one of them even though it makes sense to be in both (e.g. `textEdited()` signal)

       

      Suggestions

      • Short-term: Go through the API of both "branches" of types and ensure that all sensible properties/signals/methods are available in both.
      • Long-term: Make both TextInput and TextEdit share a common ancestor to avoid duplicating properties/signals/methods.
      • Long-term: Where sensible, move properties/signals/methods from the Qt Quick Controls child to the Qt Quick parent (e.g. the `pressed(MousEvent)` and `released(MousEvent)` signals).

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              skoh-qt Sze Howe Koh
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes