[Interest] qsTr/qsTrId dynamic binding support

CHRISTOPHER COURTOIS christopher.courtois at ext.mpsa.com
Mon Aug 12 11:20:57 CEST 2013


Hi,

Is there a plan to support dynamic binding in qml for translations functions ?

"dynamic" because bindings to qsTr never reevaluates on language switch.

As of today I use the workaround proposed here : http://qt-project.org/wiki/How_to_do_dynamic_translation_in_QML

But It looks really hacky to me to do something like this in qml :

--

Text  {
    text: qsTr("Hello") + autoTr
}

--


Cheers,

Christopher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130812/bb2eaa0d/attachment.html>


More information about the Interest mailing list