Context
In one Qt 5 project, we had a rather complicated GUI displaying an image in several different processing stages. As is often the case in image-processing applications, the user could define a region of interest (ROI) – typically a circle or a rectangle – to restrict an image operation to some part of the image. The ROI was displayed over the image and could be interactively moved and resized.
The ROI was implemented in QML because of the ease with which moving and resizing could be programmed. It was embedded into the standard QtWidget interface using the QQuickWidget class, which read and rendered the top level RoiRootWindow.qml file. In fact, both the current image and the existing ROI were displayed using QML, with the image as ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access