The following members of class QJSEngine are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
(obsolete) void |
installTranslatorFunctions(const QJSValue &object = QJSValue()) |
Installs translator functions on the given object, or on the Global Object if no object is specified.
The relation between script translator functions and C++ translator functions is described in the following table:
Script Function | Corresponding C++ Function |
---|---|
qsTr() | QObject::tr() |
QT_TR_NOOP() | QT_TR_NOOP() |
qsTranslate() | QCoreApplication::translate() |
QT_TRANSLATE_NOOP() | QT_TRANSLATE_NOOP() |
qsTrId() | qtTrId() |
QT_TRID_NOOP() | QT_TRID_NOOP() |
It also adds an arg() method to the string prototype.
This function was introduced in Qt 5.4.
See also Internationalization with Qt.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: