QQuickAsyncImageProvider Class

QQuickAsyncImageProvider 클래스는 QML 이미지 요청의 비동기 제어를 위한 인터페이스를 제공합니다. 더 보기...

Header: #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::sourceSize 에 해당합니다. requestedSize 이 유효한 크기인 경우 반환되는 이미지는 해당 크기여야 합니다.

참고: 이 메서드는 여러 스레드에서 호출될 수 있으므로 이 메서드의 구현이 다시 입력되는지 확인하세요.

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