quick
Class info
Classes
| Name | Children | Inherits |
|---|---|---|
| QuickAsyncImageProvider prettyqt.quick.quickasyncimageprovider Interface for asynchronous control of QML image requests. |
||
| QuickImageProvider prettyqt.quick.quickimageprovider Interface for supporting pixmaps and threaded image requests in QML. |
||
| QuickImageProviderMixin prettyqt.quick.quickimageprovider |
||
| QuickImageResponse prettyqt.quick.quickimageresponse Interface for asynchronous image loading in QQuickAsyncImageProvider. |
||
| QuickItem prettyqt.quick.quickitem The most basic of all visual items in Qt Quick. |
||
| QuickItemGrabResult prettyqt.quick.quickitemgrabresult Contains the result from QQuickItem::grabToImage(). |
||
| QuickItemMixin prettyqt.quick.quickitem |
||
| QuickPaintedItem prettyqt.quick.quickpainteditem Way to use the QPainter API in the QML Scene Graph. |
||
| QuickRenderControl prettyqt.quick.quickrendercontrol Mechanism for rendering the Qt Quick scenegraph onto an offscreen render target. |
||
| QuickTextDocument prettyqt.quick.quicktextdocument Access to the QTextDocument of QQuickTextEdit. |
||
| QuickView prettyqt.quick.quickview Window for displaying a Qt Quick user interface. |
||
| QuickWindow prettyqt.quick.quickwindow The window for displaying a graphical QML scene. |
||
| QuickWindowMixin prettyqt.quick.quickwindow |
||
| SGNode prettyqt.quick.sgnode The base class for all nodes in the scene graph. |
🛈 DocStrings
A declarative framework for building dynamic apps with custom user interfaces.
QuickAsyncImageProvider
Bases: QuickImageProviderMixin, QQuickAsyncImageProvider
Interface for asynchronous control of QML image requests.
QuickImageProvider
Bases: QuickImageProviderMixin, QQuickImageProvider
Interface for supporting pixmaps and threaded image requests in QML.
QuickImageResponse
Bases: ObjectMixin, QQuickImageResponse
Interface for asynchronous image loading in QQuickAsyncImageProvider.
Source code in prettyqt/quick/quickimageresponse.py
QuickItem
Bases: QuickItemMixin, QQuickItem
The most basic of all visual items in Qt Quick.
Source code in prettyqt/quick/quickitem.py
QuickItemGrabResult
Bases: ObjectMixin
Contains the result from QQuickItem::grabToImage().
Source code in prettyqt/quick/quickitemgrabresult.py
QuickItemMixin
Bases: ObjectMixin, QmlParserStatusMixin, _QuickItemBase
Source code in prettyqt/quick/quickitem.py
get_transform_origin() -> TransformOriginStr
set_transform_origin(origin: TransformOriginStr | QtQuick.QQuickItem.TransformOrigin)
Set the origin point around which scale and rotation transform.
The default is "center".
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
origin
|
TransformOriginStr | TransformOrigin
|
transform origin to use |
required |
Source code in prettyqt/quick/quickitem.py
QuickPaintedItem
Bases: QuickItemMixin, QQuickPaintedItem
Way to use the QPainter API in the QML Scene Graph.
Source code in prettyqt/quick/quickpainteditem.py
get_render_target() -> RenderTargetStr
set_render_target(target: RenderTargetStr | mod.RenderTarget)
Set the render target.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target
|
RenderTargetStr | RenderTarget
|
render target to use |
required |
QuickRenderControl
Bases: ObjectMixin, QQuickRenderControl
Mechanism for rendering the Qt Quick scenegraph onto an offscreen render target.
Source code in prettyqt/quick/quickrendercontrol.py
QuickTextDocument
Bases: ObjectMixin, QQuickTextDocument
Access to the QTextDocument of QQuickTextEdit.
Source code in prettyqt/quick/quicktextdocument.py
QuickView
Bases: QuickWindowMixin, QQuickView
Window for displaying a Qt Quick user interface.
Source code in prettyqt/quick/quickview.py
QuickWindow
Bases: QuickWindowMixin, QQuickWindow
The window for displaying a graphical QML scene.
Source code in prettyqt/quick/quickwindow.py
QuickWindowMixin
Bases: WindowMixin, _QuickWindowBase
Source code in prettyqt/quick/quickwindow.py
get_text_render_type() -> TextRenderTypeStr
classmethod
Return the render type of text-like elements in Qt Quick.
set_text_render_type(typ: TextRenderTypeStr)
classmethod
Set the default render type of text-like elements in Qt Quick.
Note: setting the render type will only affect elements created afterwards; the render type of existing elements will not be modified.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
typ
|
TextRenderTypeStr
|
text render type to use |
required |
Source code in prettyqt/quick/quickwindow.py
SGNode
Bases: QSGNode
The base class for all nodes in the scene graph.
Source code in prettyqt/quick/sgnode.py
get_children(recursive: bool = False) -> list[QtQuick.QSGNode]
Get children of this item.
recursive option is written iteratively to also support original QTreeWidgetItems.