O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Taking a picture and loading it into a panel

Now, what if we could have those panels show us something interesting instead of being blank? How about a picture of a doodle from the camera? Many comic creators still like to draw with pencil and paper, so this looks like a worthy feature. Let's sketch a use-case scenario and go ahead:

Given there is a pageAnd the page has one or more panelsAnd I select one panelWhen I add a camera picture to the selected panelThen the picture shows up in the selected panel

Here is the road map: we will first enhance our ComicPanel implementation to support clicking and images, then add a camera preview to our scene, and finally add the behavior to show the captured image in the selected panel when the panel ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required