C

PaintedItem QML Type

Allows drawing directly to framebuffer using the platform context. More...

Import Statement: import QtQuickUltralite.Extras 2.3
Since: Qt Quick Ultralite 1.9
Inherits:

Item

Properties

Detailed Description

PaintedItem delegates drawing to the derived object of the PaintedItemDelegate class, provided the derived object overrides the paint method. Drawing can be triggered by the property change events of the derived class.

The paint method of the derived class allows the framebuffer to access the lower-level platform context, instead of using the graphics device to draw.

Platform context can be different for different platforms. For example, it is the pxp device for NXP, DMA2D device for STM32, and lower-level QPainter instance for the host platform. On platforms that do not support hardware acceleration, objects can be directly drawn to the framebuffer using direct pixel manipulation.

Example usage:

        PaintedItem {
            id: paintedCircle1
            anchors.right: parent.right
            anchors.top: parent.top
            anchors.fill: parent
            anchors.margins: 20

            delegate_: CustomPaintedItemDelegate {
                id: delegate
                scale: root.scale

                onScaleChanged: {
                    delegate.update()
                }
            }
        }

Property Documentation

delegate_ : Qul::PaintedItemDelegate

This property holds deriverd instance of the PaintedItemDelegate class.


transform : list<Transform>

A transform object can be attached to the painted item to apply transformations such as translate, scale, or rotate.

For more information, see Transform.


Available under certain Qt licenses.
Find out more.