Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.8.0, 5.15.2, 5.15.6
-
None
Description
By having a leftPadding of 4.5 prevent the TextField cursor to be shown
import QtQuick 2.7 import QtQuick.Controls 2.0 import QtQuick.Templates 2.0 as T import QtQuick.Layouts 1.0 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") T.TextField { clip: true leftPadding: 4.5 width: 100 height: 30 verticalAlignment: Qt.AlignVCenter background: Rectangle { border.width: 1 border.color: "red" } } }
The same happen with
ComboBox {
leftPadding: 4.5
contentItem: TextInput {
leftPadding: 0
clip: true
}
}
Attachments
Issue Links
- relates to
-
QTBUG-97648 TextField clipping breaks batching; so maybe avoid populating characters outside?
-
- Reported
-