Qt 6.11 is out! See what's new in the release
blog
Right-To-Left alignment for placeholderText
-
Re: Qt 6.5 Material design align for placeholderText and right to left languages
Re: TextField placeHolder alignment when text align is centerI'm encountering the same problem seen in the linked issues from almost a year ago. I've tried all the solutions posted online to have a right-aligned gap when selecting the text field, matching the alignment of the placeholder text.
The solutions I've tried below have not resolved my issue:
import QtQuick import QtQuick.Window import QtQuick.Controls import QtQuick.Controls.Material ApplicationWindow { visible: true width: 640 height: 480 title: "TextField Example" Material.theme: Material.Light Material.accent: Material.Blue TextField { id: textField width: 200 height: 40 placeholderText: "يسشبه" anchors.centerIn: parent horizontalAlignment: Text.AlignLeft LayoutMirroring.enabled: true Material.accent: Material.DeepPurple } }The end result is this, before and after focusing:


Is there a way to move the gap towards the right, matching the right-alignment of the placeholder text?