Ich habe eine TextArea. Wenn ich Padding ständig padding normal arbeiten.QML TextArea seltsame Polsterung
import QtQuick 2.9
import QtQuick.Controls 2.2
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
TextArea{
font.pixelSize: 20
anchors.fill: parent
wrapMode: TextArea.Wrap
leftPadding: 100 //*parent.width/640
rightPadding: 100 //*parent.width/640
}
}
Wenn ich Zeilen oben auskommentieren habe ich seltsames Verhalten. Was mache ich falsch?
Screenshot