Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.0
-
-
4ab11d03a (dev), 7973b58a1 (6.5.1), 40d39636a (6.5)
Description
When using TextField and setting alignment to something other than AlignLeft, the placeholder text is not placed in the correct location
Attached small project
import QtQuick import QtQuick.Window import QtQuick.Controls.Material import QtQuick.Layouts Window { width: 640 height: 480 visible: true title: qsTr("Hello World") ColumnLayout{ anchors.top:parent.top anchors.left: parent.left anchors.right:parent.right anchors.topMargin:10 spacing:10 TextField{ Layout.fillWidth:true placeholderText:"AlignLeft" horizontalAlignment:Text.AlignLeft } TextField{ Layout.fillWidth:true placeholderText:"AlignHCenter" horizontalAlignment:Text.AlignHCenter } TextField{ Layout.fillWidth:true placeholderText:"AlignRight" horizontalAlignment:Text.AlignRight } } }
Attachments
For Gerrit Dashboard: QTBUG-113172 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
475374,4 | Material: fix placeholder text alignment | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
475565,2 | Material: fix placeholder text alignment | 6.5.1 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
475566,2 | Material: fix placeholder text alignment | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |