[Qt-qml] Text size if setting text to empty string
michael.brasser at nokia.com
michael.brasser at nokia.com
Mon Mar 21 23:43:32 CET 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110321/82644ef5/attachment.html
More information about the Qt-qml
mailing list