ItemGrabResult QML Type
Item::grabToImage() の呼び出し結果が含まれます。詳細...
| Import Statement: | import QtQuick |
| In C++: | QQuickItemGrabResult |
| Inherits: |
プロパティ
方法
- bool saveToFile(fileName)
詳細な説明
ItemGrabResultは、Item::grabToImage()からの結果をカプセル化するために使用される小さなコンテナです。
Item::grabToImage()も参照してください 。
プロパティのドキュメント
image : variant [read-only]
このプロパティは、QImage の形式で、グラブ操作によるピクセル結果を保持します。
url : url [read-only]
このプロパティには、QtQuick::Image 型などの URL ベースの画像コンシューマーと組み合わせて使用できる URL が格納されます。
このURLは、QMLまたはJavaScriptでItemGrabResult が参照されている間、あるいはそのURLが参照する画像が実際に使用されている間は有効です。
この URL は、読み込むための有効なファイルや場所を表すものではなく、主にQt Quick の画像ベースの型を通じて画像にアクセスするためのキーとして機能します。
メソッドのドキュメント
bool saveToFile(fileName)
取得結果を画像としてfileName に保存します。成功した場合はtrue を返し、失敗した場合はfalse を返します。
© 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.