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

TextInput element is missing verticalAlignment property available for Text element

XMLWordPrintable

      This causes unnecessary API inconsistency between Text elements, leading to a slightly worse developer experience and sometimes makes swapping text elements (display mode <-> edit mode) in place for states and animations harder. Anchors are good way to align text, but not really an option if you want to make the text element bigger than the actual text content for better finger-usability.

      import QtQuick 1.0
      
      BorderImage {
          source: "inputfield.png"
          ..
          TextInput {
              anchors.fill: parent
              verticalAlignment: TextInput.AlignVCenter
              horizontalAlignment: TextInput.AlignHCenter
          }
      }
      

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

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes