I would like to put text inside a bubble, and I want that my bubble be equal to the text width, but if the text length is too long, I would like the text to wrap automatically a
Try this:
Text { property int MAX_WIDTH: 400 width: MAX_WIDTH onTextChanged: width = Math.min(MAX_WIDTH, paintedWidth) }