ItemGrabResult QML Type

Item::grabToImage()로의 호출 결과를 포함합니다. 더 보기...

Import Statement: import QtQuick
In C++: QQuickItemGrabResult
Inherits:

QtObject

속성

방법

상세 설명

ItemGrabResult는 Item::grabToImage()의 결과를 캡슐화하는 데 사용되는 작은 컨테이너입니다.

Item::grabToImage()도 참조하세요 .

속성 문서

image : variant [read-only]

이 프로퍼티는 QImage 의 형태로 픽셀 결과를 저장합니다.


url : url [read-only]

이 프로퍼티는 URL 기반 이미지 소비자(예: QtQuick::Image 유형)와 함께 사용할 수 있는 URL을 보유합니다.

URL은 QML 또는 JavaScript에서 ItemGrabResult 에 대한 참조가 있거나 URL이 참조하는 이미지가 활발하게 사용되는 동안에는 유효합니다.

URL은 유효한 파일이나 읽을 수 있는 위치를 나타내지 않으며, 주로 Qt Quick 의 이미지 기반 유형을 통해 이미지에 액세스하기 위한 키입니다.


메서드 문서

bool saveToFile(fileName)

수집 결과를 fileName 에 이미지로 저장합니다. 성공하면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.


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