Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.4, 6.3.0 RC
-
-
e3f990999b (qt/qtdeclarative/dev) e3f990999b (qt/tqtc-qtdeclarative/dev) 85312110d7 (qt/qtdeclarative/6.3) 85312110d7 (qt/tqtc-qtdeclarative/6.3) ab10e565f0 (qt/tqtc-qtdeclarative/6.2)
Description
import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Window 2.15 Window { visible: true width: 300 height: 300 TextField { width: 200 anchors.centerIn: parent horizontalAlignment: Text.AlignHCenter placeholderText: "Centered" } }
See attached screenshots.
- Expected outcome: Window should look like textfield-placeholder-centered.png
- Actual outcome: Window looks like textfield-placeholder-notcentered.png
Notes
- The issue affects TextField.placeholderText in Qt 6 in native style
- The issue does not affect TextField.text
- The issue does not affect Qt 5
Workaround
Switch to a different style, like Basic or Fusion
Attachments
Issue Links
- relates to
-
QTBUG-120005 Native TextArea: placeholderText does not respect horizontalAlignment
-
- Closed
-
For Gerrit Dashboard: QTBUG-102449 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
406455,4 | Fix PlaceHolder text horizontal alignment issue | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
407022,2 | Fix PlaceHolder text horizontal alignment issue | 6.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
407035,2 | Fix PlaceHolder text horizontal alignment issue | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |