<< Click to Display Table of Contents >> Navigation: Getting started with CVB tutorials > Building a CVB sample application > Python > Linux (Ubuntu) with Visual Studio Code |
1Copy the tutorial folder to your home folder to compile the tutorials with access rights:
- E.g. mkdir ~/CVB
- cp -r /opt/cvb/tutorial ~/CVB
2You may start the ~/CVB/tutorial/ImageManager/CvbPy/QmlStreamDisplay with command python3 display.py. Or you might use Visual Studio Code (see below).
3Open the folder (not the file!) ~/CVB/tutorial/ImageManager/CvbPy/QmlStreamDisplay in Visual Studio Code. Follow the instructions in https://code.visualstudio.com/docs/python/python-tutorial to select the Python interpreter.
For additional debug output of QML UI, you may set and enable the environment variable QML_IMPORT_TRACE=1 (see https://doc.qt.io/qt-5/qtquick-debugging.html).
Then start debugging.
Select Python File.
4The example will start immediately.
The result should look like this:
Congratulations. You have ran your first Common Vision Blox sample using Qt with Python. The code of the sample can be run under different operating systems as well as on different projects.
Repeat the steps for the other samples. It is not too difficult.