[Qt-qml] Text size if setting text to empty string
Tobias Renz
Tobias.Renz at jdsu.com
Mon Mar 21 16:33:30 CET 2011
Hello Everybody,
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?
Regards,
Tobias
Tobias Renz Phone: +49 7121 86 1121
R&D Software Engineer Fax: +49 7121 86 2525
Mühleweg 5 E-mail: tobias.renz at jdsu.com<mailto:tobias.renz at jdsu.com>
72800 Eningen u.A. / Germany World Wide Web: http://www.jdsu.com<http://www.jdsu.com/>
Intranet: http://www.eni.eu.acterna.net/~ren47001
[cid:114303315 at 21032011-2B31]
JDSU Deutschland GmbH Sitz: 72800 Eningen u.A.
Registergericht Stuttgart, HRB 353758
WEEE-Reg.-Nr.: DE 53620669
Geschäftsführung: Rolf Trieflinger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110321/c524d430/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 4516 bytes
Desc: image002.jpg
Url : http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110321/c524d430/attachment.jpg
More information about the Qt-qml
mailing list