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

positioning text right after word wrapped text

$
0
0
ListView {  anchors.fill: parent  model: ContactModel {}  delegate: Item  {   width: parent.width   height: toopis.height + pls.height + 10   Text   {    id: toopis    anchors.left: parent.left    anchors.right: bonehead.left    anchors.rightMargin: 10    text: name    color: "black"    font.pointSize: 24    wrapMode: Text.WrapAnywhere    font.family: "Segoe UI"   }   Text   {    id: bonehead    anchors.right: parent.right    text: price    color: "black"    horizontalAlignment: Text.AlignRight    font.pointSize: 24    font.family: "Segoe UI"   }   Text   {    id: pls    anchors.top: toopis.bottom    color: "#C8C8C8"    text: "wow"    font.pointSize: 24    font.family: "Segoe UI"   }  } } produces However, I want something like this I’ve tried using the Flow element to no avail. Nesting the Text element didn’t work either. The reason why they can’t be part of the same Text element is because of the font differences.

Viewing all articles
Browse latest Browse all 4972

Trending Articles