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") |
Convenience method to register this type or a derived type in QML. 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... | |
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.
None register | ( | cls, | |
str | uri = "CvbQuick" , |
||
int | version_major = 1 , |
||
int | version_minor = 0 , |
||
str | qml_name = "ImageLabel" |
||
) |
Convenience method to register this type or a derived type in QML.
Basically just calls qmlRegisterType(...).
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.
|
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.
|
static |
Get or set the X position of this label on the image.
This is a QML property!
|
static |
Get or set the Y position of this label on the image.
This is a QML property!
|
static |
Get or set the label scale behavior (as int, see cvb.ui.labelScale).
This is a QML property!