ADTF Qt5
Loading...
Searching...
No Matches
cImageItem Class Reference

QML Item to display images. More...

#include <image_item.h>

Inherits QQuickPaintedItem.

Signals

void imageChanged ()
 

Public Member Functions

 cImageItem (QQuickItem *parent=nullptr)
 
void paint (QPainter *painter) override
 
void setImage (const QVariant &oImage)
 
QVariant getImage () const
 

Properties

QVariant image
 
qreal implicitWidth
 
qreal implicitHeight
 

Detailed Description

QML Item to display images.

Constructor & Destructor Documentation

◆ cImageItem()

cImageItem::cImageItem ( QQuickItem * parent = nullptr)

CTOR

Parameters
parentThe parent QML item

Member Function Documentation

◆ 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
oImageThe image as QVariant (QImage)

Property Documentation

◆ 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: