0

I am just looking to adjust the listbox width according to the model's item text size in qml. Is it possible, any ideas.

Rajeev Sahu
  • 1,732
  • 6
  • 26
  • 39

1 Answers1

0

You can use paintedWidth property of text in Component.onCompleted method of item and change parent.width accordingly.

Dmitry Melnikov
  • 743
  • 4
  • 13