J'ai une TextArea. Si je mets le rembourrage en permanence, le rembourrage fonctionne normalement.QML TextArea Rembourrage étrange
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
}
}
Si je décommente les lignes ci-dessus, j'ai un comportement étrange. Qu'est-ce que je fais de mal?
Screenshot