[Interest] Misuse fontSizeMode property of Text item (or bug ?)

guillaume.belz at free.fr guillaume.belz at free.fr
Thu Feb 28 10:31:14 CET 2013


Hello, 
I wan't to test fontSizeMode of Text item, but text was not fit to item size. I don't use correctly or there is a bug? 


import QtQuick 2.0 
Rectangle { 
width: 300 
height: 300 
Text { 
anchors.fill: parent 
text: "Hello world" 
fontSizeMode: Text.Fit 
minimumPointSize: 10 
} 
} 


Thanks, 
Guillaume 


Tested for Qt 5.0.1 on Windows 7 64b Mingw and Ubuntu 64b gcc and for Qt 5.0.0 on Ubuntu 64b gcc 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130228/8b4280e9/attachment.html>


More information about the Interest mailing list