O'Reilly logo

Qt 5 Blueprints by Symeon Huang

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

Chapter 4. Controlling Camera and Taking Photos

Through this chapter, you'll find how easy it is to access and control a camera with Qt. The example in this chapter also demonstrates how to utilize the status bar and menu bar. In addition to the traditional Qt Widget applications, there is a QML camera example, which does the same thing as Qt/C++ but in a more elegant way. The following topics, which are covered in this chapter, will extend your application:

  • Accessing the camera in Qt
  • Controlling the camera
  • Displaying errors in the status bar
  • Displaying the permanent widgets in the status bar
  • Utilizing the menu bar
  • Using QFileDialog
  • Using the QML Camera

Accessing the camera in Qt

Although we won't talk about the technical details of how a camera works, ...

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