QML Text element with Text.AlignJustify
-
wrote on 19 Jul 2011, 07:37 last edited by
Hi
I need to create a Text element with fully justified text. According to "4.7 Snapshot docs":http://doc.qt.nokia.com/4.7-snapshot/qml-text.html#horizontalAlignment-prop Text.AlignJustify is a valid value for Text.horizontalAlignment. But this does not appear in "4.7 Latest docs":http://doc.qt.nokia.com/latest/qml-text.html#horizontalAlignment-prop.
The latest Qt Creator (2.2.1) seems to know about Text.AlignJustify but when it is specified as the value for Text.horizontalAlignment, I get the error: Unable to assign [undefined] to int horizontalAlignment.
When will this option become available?
Also I don't think I fully understand the difference between the "snapshot" docs and "latest", what is the difference?
QQ
-
wrote on 19 Jul 2011, 07:48 last edited by
Hi,
AlignJustify will be added as part of the QtQuick 1.1 release ( http://doc.qt.nokia.com/4.7-snapshot/qtquick-whatsnew.html ).
Regards,
Michael -
wrote on 19 Jul 2011, 07:50 last edited by
Hi QQ, "snapshot" and "latest"(know as release) docs are different. AFAWK, there has tp(technical preview), beta, and release version for Qt. So maybe some context, some APIs will be changed or removed in release version.
What's the justified text used for ? Can it be place with other alignment value?
-
wrote on 19 Jul 2011, 07:52 last edited by
Hi Michael, what's the AlignJustify? And your link is wrong(with a ")" in the end) :-)
-
wrote on 19 Jul 2011, 07:55 last edited by
[quote author="mbrasser" date="1311061700"]Hi,
AlignJustify will be added as part of the QtQuick 1.1 release (http://doc.qt.nokia.com/4.7-snapshot/qtquick-whatsnew.html).
Regards,
Michael[/quote]Hi Michael
Thanks for that. Any idea when this will be available to be used for Symbian apps?
QQ
-
wrote on 19 Jul 2011, 08:03 last edited by
Hi,
QtQuick 1.1 should be a part of Qt 4.7.4 (unless plans change), but no release date has been announced yet.
Chuck, thanks for pointing out the problem with the link -- should be fixed now.
Regards,
Michael
6/6