Obsolete Members for QQmlEngine
The following members of class QQmlEngine are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
| ||importPlugin(const QString &filePath, const QString &uri, QList<QQmlError> *errors)|
Member Function Documentation
bool QQmlEngine::importPlugin(const QString &filePath, const QString &uri, QList<QQmlError> *errors)
This function is deprecated since 6.4. We strongly advise against using it in new code.
Import the module from QML with an "import" statement instead.
Imports the plugin named filePath with the uri provided. Returns true if the plugin was successfully imported; otherwise returns false.
On failure and if non-null, the errors list will have any errors which occurred prepended to it.
The plugin has to be a Qt plugin which implements the QQmlEngineExtensionPlugin interface.
Note: Directly loading plugins like this can confuse the module import logic. In order to make the import logic load plugins from a specific place, you can use addPluginPath(). Each plugin should be part of a QML module that you can import using the "import" statement.
© 2022 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.