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

Native TextArea: placeholderText does not respect horizontalAlignment

    XMLWordPrintable

Details

    • macOS, Windows
    • c4a1db07c (dev), 44126abbd (6.7), ff47c6848 (6.6), 63b0951c9 (tqtc/lts-6.5)

    Description

      Code sample

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Window
      
      Window {
          width: 300
          height: 300
          visible: true
      
          TextArea {
              width: 200
              anchors.centerIn: parent
      
              horizontalAlignment: Text.AlignHCenter
              placeholderText: "Centered"
      
              background: Rectangle { border.width: 1 }
          }
      }
      

      Actual result (wrong):

      Expected result: placeholder text should respect TextArea's horizontalAlignment.

      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
              studiosus Vladimir Belyavsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes