QQuickAsyncImageProvider Class
QQuickAsyncImageProvider 클래스는 QML 이미지 요청을 비동기적으로 제어하기 위한 인터페이스를 제공합니다. 더 보기...
| 헤더: | #include <QQuickAsyncImageProvider> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
| 상속: | QQuickImageProvider |
공개 함수
| virtual QQuickImageResponse * | requestImageResponse(const QString &id, const QSize &requestedSize) = 0 |
상세 설명
전체 구현 내용은 ‘이미지 응답 제공자 예제’를 참조하십시오.
QQuickImageProvider도 참조하십시오 .
멤버 함수 문서
[pure virtual] QQuickImageResponse *QQuickAsyncImageProvider::requestImageResponse(const QString &id, const QSize &requestedSize)
이 메서드를 구현하여 id 를 통해 텍스처를 제공하는 작업을 반환하십시오.
id 는 요청된 이미지 소스에서 "image:" 스키마와 제공자 식별자가 제거된 것입니다. 예를 들어, source 이미지의 주소가 "image://myprovider/icons/home"인 경우, 주어진 id 는 "icons/home"이 됩니다.
requestedSize 는 Image 항목이 요청한 Image::sourceSize 에 해당합니다. requestedSize 가 유효한 크기라면, 반환되는 이미지는 해당 크기를 가져야 합니다.
참고: 이 메서드는 여러 스레드에서 호출될 수 있으므로, 이 메서드의 구현이 재진입 가능(reentrant)하도록 해야 합니다.
© 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.