Skip to content

QuickItemGrabResult

Base classes

Name Children Inherits
ObjectMixin
prettyqt.core.object

⋔ Inheritance diagram

graph TD
  1473374478912["quick.QuickItemGrabResult"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473299815024 --> 1473374478912
  140713234304496 --> 1473299815024

🛈 DocStrings

Bases: ObjectMixin

Contains the result from QQuickItem::grabToImage().

Source code in prettyqt\quick\quickitemgrabresult.py
class QuickItemGrabResult(core.ObjectMixin):
    """Contains the result from QQuickItem::grabToImage()."""

    def __init__(self, item: QtQuick.QQuickItemGrabResult):
        self.item = item

    def __getattr__(self, val):
        return getattr(self.item, val)

    def get_image(self) -> gui.Image:
        return gui.Image(self.image())

    def get_url(self) -> core.Url:
        return core.Url(self.url())