QML Item to display images.
More...
#include <image_item.h>
Inherits QQuickPaintedItem.
QML Item to display images.
◆ cImageItem()
| cImageItem::cImageItem |
( |
QQuickItem * | parent = nullptr | ) |
|
CTOR
- Parameters
-
| parent | The parent QML item |
◆ getImage()
| QVariant cImageItem::getImage |
( |
| ) |
const |
Get the image
- Returns
- The image as QVariant (QImage)
◆ imageChanged
| void cImageItem::imageChanged |
( |
| ) |
|
|
signal |
Signal emitted when the image changes
◆ paint()
| void cImageItem::paint |
( |
QPainter * | painter | ) |
|
|
override |
paint implementation to draw the image
◆ setImage()
| void cImageItem::setImage |
( |
const QVariant & | oImage | ) |
|
Set the image to display
- Parameters
-
| oImage | The image as QVariant (QImage) |
◆ image
| QVariant cImageItem::image |
|
readwrite |
The image property to display
◆ implicitHeight
| qreal cImageItem::implicitHeight |
|
read |
The height property from base class, redefined as read-only.
◆ implicitWidth
| qreal cImageItem::implicitWidth |
|
read |
The width property from base class, redefined as read-only.
The documentation for this class was generated from the following file: