Common Vision Blox 15.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Friends Modules Pages
Image Display in Python Using Qt/QML

To build modern and responsive graphical user interfaces (GUIs) for CVB applications, the Qt framework provides a flexible and powerful foundation. Whether you're working with classic Qt Widgets or a QML-based interface, CVB offers native support for both through its cvb.ui module. This section explains how to integrate CVB image display functionality into your Qt or QML application using Python.

Prerequisites

Before starting, ensure that you have installed Common Vision Blox (CVB) and CVBPy, as described in Getting Started with Python.

To integrate Qt/QML into your CVB Python project, ensure PySide2 or PySide6 is installed by running: python -m pip install pyside6.

CVB User Interface

To simplify the integration of Qt with CVB, the library provides the cvb.ui module. It allows you to easily display CVB images within QML applications using the cvb.ui.ImageViewItem widget.

For example applications, see the next section.

Example Programs

Your CVB installation includes several example programs demonstrating the integration of CVB with Qt and QML. They are located under %CVB%Tutorial (Windows) or $CVB/tutorial (Linux). Look for examples starting with Qt or Qml in their names:

QmlStreamDisplay
QmlGenDCDisplay

and more...