[Interest] RowLayout with Text with wrap mode
Igor Mironchik
igor.mironchik at gmail.com
Sat Mar 3 08:24:09 CET 2018
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