Thank you! This is the point!

Best Regards,
Tobias

________________________________
Von: [email protected] [mailto:[email protected]]
Gesendet: Montag, 21. März 2011 23:44
An: Tobias Renz
Cc: [email protected]
Betreff: Re: [Qt-qml] Text size if setting text to empty string

Hi,

On 22/03/2011, at 1:33 AM, ext Tobias Renz wrote:

AFAIK the width and height of a qml Text element is set dependant of the text.
This works if I set the text property to a new value.

The problem is that if setting the text property to "" after setting it to 
another value the width stays the same as before.
It doesn't change to "0". Only if I set a new text that is not empty it will 
recalculate the width.

Did anybody else see this? I'm using Qt 4.7.1. Do you guys think this is 
intended behaviour?

If a width has not been explicitly set, then setting the text property to "" 
should cause the width to return to 0. This should be working correctly in 
4.7.2 (according to the fix for 
http://bugreports.qt.nokia.com/browse/QTBUG-14865).

Regards,
Michael
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to