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