The View, QGraphicsView

We're down to the last part of The Graphics View Framework in Qt. The QGraphicsView class is a Qt Widget class that can be placed on a window to display QGraphicsScene, which itself contains a number of QGraphicsItem subclasses and/or widgets. Similar to the QGraphicsScene class, this class also provides tons of capabilities, methods, and properties to deal with the visualization part of the graphics. We'll review some of the most important ones in the following list, and then we'll learn how to subclass QGraphicsView and extend it to have several important capabilities in our comprehensive computer vision application, such as zoom in, zoom out, item selection, and so on. So, here are the methods and members of the ...

Get Computer Vision with OpenCV 3 and Qt5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.