C++-Erweiterungen: Beispiel für einen Bild-Provider
So laden Sie Bilder in QML mit „ QQuickImageProvider “.
Dieses Beispiel zeigt, wie man mit „ QQuickImageProvider “ Bilder an QML- Image -Elemente bereitstellt und wie man dies in ein „ QQmlEngineExtensionPlugin “ verpackt, das zur Laufzeit erkannt und geladen wird. Das Plugin ist dann eine wiederverwendbare Komponente, die an einem systemweiten Speicherort installiert werden kann, um von mehreren Anwendungen genutzt zu werden.

© 2026 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.