[Interest] RowLayout with Text with wrap mode

Igor Mironchik igor.mironchik at gmail.com
Sat Mar 3 10:18:31 CET 2018


I know that changing RowLayout to simple Row will solve the problem. But 
is it possible to solve this with layout?


On 03.03.2018 10:24, Igor Mironchik wrote:
> Hello,
>
> I have a delegate for ListView with RowLayout inside:
>
> RowLayout {
>                 anchors.fill: parent
>                 spacing: 20
>                 width: parent.width
>
>                 ColumnLayout {
>                     id: col
>                     anchors.left: parent.left
>                     spacing: 5
>
>                     Text {
>                         text: type === 0 ? qsTr( "<b>Place: </b>" ) + 
> model[ "PlaceRole" ] :
>                             qsTr( "<b>Code: </b>" ) + model[ "CodeRole" ]
>                     }
>
>                     Text {
>                         text: qsTr( "<b>Amount: </b>" ) + model[ 
> "AmountRole" ]
>                     }
>                 }
>
>                 Text {
>                     text: model[ "DescRole" ]
>                     wrapMode: Text.WordWrap
>                 }
>             }
>
>
> All is fine with except that the last Text item doesn't wrap text. How 
> can I workaround it? Thanks.
>




More information about the Interest mailing list