CVBpy 15.0
ImageLabelItem Class Reference

Image label item for QML. More...

Inherits QQuickItem.

Public Member Functions

None register (cls, str uri="CvbQuick", int version_major=1, int version_minor=0, str qml_name="ImageLabel")
 Basically just calls qmlRegisterType(...). More...
 

Properties

 imageView = property
 Get or set the image view for this label. More...
 
 imageX = property
 Get or set the X position of this label on the image. More...
 
 imageY = property
 Get or set the Y position of this label on the image. More...
 
 labelScale = property
 Get or set the label scale behavior (as int, see cvb.ui.labelScale). More...
 

Detailed Description

Image label item for QML.

This class (or an extended subclass) should be registered in QML. The item provides an overlay object to draw into an image display (see cvb.ImageViewItem) Instances should only be created from QML.

For convenience see ImageLabelItem.register

See examples for available properties.

Member Function Documentation

◆ register()

None register (   cls,
str   uri = "CvbQuick",
int   version_major = 1,
int   version_minor = 0,
str   qml_name = "ImageLabel" 
)

Basically just calls qmlRegisterType(...).

Parameters

uri : str URI forwarded to Qt.

version_major : int Major version forwarded to Qt.

version_minor : int Minor version forwarded to Qt.

qml_name : str Name in QML forwarded to Qt.

Property Documentation

◆ imageView

imageView = property
static

Get or set the image view for this label.

This is a QML property! Use this property in QML to associate the label with an image view.

◆ imageX

imageX = property
static

Get or set the X position of this label on the image.

This is a QML property!

◆ imageY

imageY = property
static

Get or set the Y position of this label on the image.

This is a QML property!

◆ labelScale

labelScale = property
static

Get or set the label scale behavior (as int, see cvb.ui.labelScale).

This is a QML property!