Skip to content

QuickView

Qt Base Class: QQuickView

Signature: QQuickView(self, engine: PySide6.QtQml.QQmlEngine, parent: PySide6.QtGui.QWindow) -> None QQuickView(self, parent: Optional[PySide6.QtGui.QWindow] = None) -> None QQuickView(self, source: Union[PySide6.QtCore.QUrl, str], parent: Optional[PySide6.QtGui.QWindow] = None) -> None QQuickView(self, source: Union[PySide6.QtCore.QUrl, str], renderControl: PySide6.QtQuick.QQuickRenderControl) -> None

Base classes

Name Children Inherits
QuickWindowMixin
prettyqt.quick.quickwindow
QQuickView
PySide6.QtQuick
QQuickView(self, engine: PySide6.QtQml.QQmlEngine, parent: PySide6.QtGui.QWindow) -> None

⋔ Inheritance diagram

graph TD
  1473374482816["quick.QuickView"]
  1473374469152["quick.QuickWindowMixin"]
  1473245538720["gui.WindowMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473245537744["gui.SurfaceMixin"]
  1473374425232["QtQuick.QQuickView"]
  1473374453536["QtQuick.QQuickWindow"]
  1473289181264["QtGui.QWindow"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473300006240["QtGui.QSurface"]
  1473374469152 --> 1473374482816
  1473245538720 --> 1473374469152
  1473299815024 --> 1473245538720
  140713234304496 --> 1473299815024
  1473245537744 --> 1473245538720
  140713234304496 --> 1473245537744
  1473374425232 --> 1473374482816
  1473374453536 --> 1473374425232
  1473289181264 --> 1473374453536
  1473288842240 --> 1473289181264
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208
  1473300006240 --> 1473289181264
  1473291690208 --> 1473300006240

🛈 DocStrings

Bases: QuickWindowMixin, QQuickView

Window for displaying a Qt Quick user interface.

Source code in prettyqt\quick\quickview.py
class QuickView(quick.quickwindow.QuickWindowMixin, quick.QQuickView):
    """Window for displaying a Qt Quick user interface."""

    def set_source(self, source: datatypes.UrlType | datatypes.PathType):
        self.setSource(datatypes.to_local_url(source))

    def get_source(self) -> pathlib.Path:
        return pathlib.Path(self.source().toLocalFile())

    def get_status(self) -> StatusStr:
        return STATUS.inverse[self.status()]

⌗ Property table

Qt Property Type Doc
objectName QString
title QString
modality Qt::WindowModality
flags QFlags
x int
y int
width int
height int
minimumWidth int
minimumHeight int
maximumWidth int
maximumHeight int
visible bool
active bool
visibility QWindow::Visibility
contentOrientation Qt::ScreenOrientation
opacity double
transientParent QWindow
data QQmlListProperty
color QColor
contentItem QQuickItem
activeFocusItem QQuickItem
palette QQuickPalette
resizeMode QQuickView::ResizeMode
status QQuickView::Status
source QUrl