[Qt-qml] QML Text paintedWidth/paintedHeight

139 views
Skip to first unread message

Harri Pasanen

unread,
Jan 25, 2012, 4:15:02 AM1/25/12
to qt-...@trolltech.com
Hi,

There doesn't seem to be any signal to indicate
when these are ready.

Looks like they are not computed immediately at "text"
assignment time, which is logical given that there may
be image urls etc. in the text.

But how could I get paintedWidth and paintedHeight
prior to showing the QML element?

/Harri

_______________________________________________
Qt-qml mailing list
Qt-...@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

yann....@nokia.com

unread,
Jan 26, 2012, 7:03:22 PM1/26/12
to ha...@mpaja.com, qt-...@trolltech.com
Hi Harri,

You should be able to use to the 'paintedSizeChanged' signal to know when the size of the text changes.

Cheers,

Yann

Reply all
Reply to author
Forward
0 new messages