Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

[solved]Boundaries of TextInput

$
0
0
How can clip off the text that is outside of a LineInput? Currently, when I type too much, the beginning of the input is moved outside on the left side: Screenshot: http://i.imgur.com/bleVSeB.png [i.imgur.com] I would like the text on the left side to be clipped off instead. How can I do that? Relevant code: Item {     property alias text: input.text     property alias maximumLength: input.maximumLength     width: 180; height: 28     TextInput {         id: input         color: "black"         font.pixelSize: 16; font.bold: true         anchors.centerIn: parent         width: parent.width-16         focus: true     } }

Viewing all articles
Browse latest Browse all 4972

Trending Articles