Obsolete Members for QQmlEngine
QQmlEngine 클래스의 다음 멤버는 더 이상 사용되지 않습니다. 이들은 이전 소스 코드의 작동을 유지하기 위해 제공됩니다. 새 코드에서는 사용하지 않는 것이 좋습니다.
공용 함수
(deprecated in 6.4) bool | importPlugin(const QString &filePath, const QString &uri, QList<QQmlError> *errors) |
멤버 함수 문서
[deprecated in 6.4]
bool QQmlEngine::importPlugin(const QString &filePath, const QString &uri, QList<QQmlError> *errors)
이 함수는 6.4부터 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
대신 "import" 문을 사용하여 QML에서 모듈을 가져옵니다.
uri 을 사용하여 filePath 이라는 이름의 플러그인을 가져옵니다. 플러그인을 성공적으로 가져오면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.
실패하거나 null이 아닌 경우 errors 목록에 발생한 모든 오류가 앞에 추가됩니다.
플러그인은 QQmlEngineExtensionPlugin 인터페이스를 구현하는 Qt 플러그인이어야 합니다.
참고: 이와 같은 플러그인을 직접 로드하면 모듈 가져오기 로직이 혼동될 수 있습니다. 가져오기 로직이 특정 위치에서 플러그인을 로드하도록 하려면 addPluginPath()를 사용할 수 있습니다. 각 플러그인은 "import" 문을 사용하여 가져올 수 있는 QML 모듈의 일부여야 합니다.
© 2025 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.