Obsolete Members for QJSEngine
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.
| ||installTranslatorFunctions(const QJSValue &object = QJSValue())|
- 2 public functions inherited from QObject
Member Function Documentation
void QJSEngine::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|
It also adds an arg() method to the string prototype.
This function was introduced in Qt 5.4.
See also Internationalization with Qt.
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.