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

[SOLVED]How to limit the text width with the restriction of parent width

$
0
0
Hi, Label {       id: test       width: 100       height: 30       Text{         color: 'red'         //anchors adjustment        text: qsTr("sometext") //if sometext has 256 characters, lengthy text appears in adjacent controls.       }     } How to truncate the test as per label width? I have width in pixels. Want to control text. any idea. Thanks.

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images