TextField placeHolder alignment when text align is center
Unsolved
QML and Qt Quick
-
wrote on 20 May 2023, 12:12 last edited by
-
Hi,
I have problem with placeHolder alignment when text horizontalAlignemnt is when Qt.AlignHCenter.
What's the problem?
wrote on 22 May 2023, 10:02 last edited by@Mohammad-Sherafat That looks horizontally aligned to me. Why do you think there is a problem?
Also, if you can explain what you see the problem to be, you will probably need to show some code in order for anyone to help.
-
@Mohammad-Sherafat That looks horizontally aligned to me. Why do you think there is a problem?
Also, if you can explain what you see the problem to be, you will probably need to show some code in order for anyone to help.
wrote on 28 May 2023, 14:13 last edited byimport QtQuick import QtQuick.Window import QtQuick.Controls import QtQuick.Layouts import QtQuick.Controls.Material 2.15 ApplicationWindow { width: 600 height: 480 visible: true title: qsTr("App Links Test") Material.theme: Material.Dark ColumnLayout { anchors.centerIn: parent width: 500 TextField { placeholderText: "Defult horizontalAlignment" Layout.fillWidth: true } TextField { placeholderText: "horizontalAlignment: Qt.AlignHCenter" Layout.fillWidth: true horizontalAlignment: Qt.AlignHCenter } TextField { placeholderText: "horizontalAlignment: Qt.AlignLeft" Layout.fillWidth: true horizontalAlignment: Qt.AlignLeft } TextField { placeholderText: "horizontalAlignment: Qt.AlignRight" Layout.fillWidth: true horizontalAlignment: Qt.AlignRight } } }
3/3