[Qt-qml] Non-scaling text
Jason H
scorp1us at yahoo.com
Mon Feb 21 16:11:32 CET 2011
It is if you need a layout manager, where you want the text are to be clipped
not scaled.
I'd probably try making a model/view so the the view can be scaled but the view
will clip the itemdelegtes.
That's how I'd do it.
----- Original Message ----
From: Bob <bobtheprog at gmail.com>
To: qt-qml at qt.nokia.com
Sent: Sun, February 20, 2011 7:25:14 AM
Subject: [Qt-qml] Non-scaling text
I want to use QML to add items to the cells of a table. The table has
resizeable rows (and columns) of data and the user can add custom
annotations to the data. Conceptually, the user's script is something
like this: if (heart_rate > 150) then { shape:big_red_blob;
text:"Whoops!" }
With QML and QtScript and a bit of JavaScript this almost works well.
But everything scales when the user resizes rows and columns,which is
correct for the shapes but makes the text look silly.
How can I implement QML text that does not scale, mixed with
'everything else' that does scale?
Bob
_______________________________________________
Qt-qml mailing list
Qt-qml at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
More information about the Qt-qml
mailing list