Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
QT5 Blueprints

You're reading from   QT5 Blueprints Design, build, and deploy cross-platform GUI projects using the amazingly powerful Qt 5 framework

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781784394615
Length 272 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Symeon Huang Symeon Huang
Author Profile Icon Symeon Huang
Symeon Huang
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Creating Your First Qt Application FREE CHAPTER 2. Building a Beautiful Cross-platform Clock 3. Cooking an RSS Reader with Qt Quick 4. Controlling Camera and Taking Photos 5. Extending Paint Applications with Plugins 6. Getting Wired and Managing Downloads 7. Parsing JSON and XML Documents to Use Online APIs 8. Enabling Your Qt Application to Support Other Languages 9. Deploying Applications on Other Devices 10. Don't Panic When You Encounter These Issues Index

Accessing the camera in Qt

Although we won't talk about the technical details of how a camera works, the overview of the implementation of a camera in Qt will be covered. Support for a camera is included in Qt Multimedia, which is a module that provides a rich set of QML types and C++ classes to handle multimedia content. Things such as audio playback, camera, and radio functionality are shown. To complement this, the Qt Multimedia Widgets module provides widget-based multimedia classes to make the work easier.

There are some classes to help us deal with the camera. For instance, viewfinder lets a user look through the camera to compose, and in many cases focus, the picture. In Qt/C++, you can use QGraphicsView along with QGraphicsVideoItem to do this job. QGraphicsView provides a widget to display the contents of QGraphicsScene. In this case, QGraphicsVideoItem is an item of the scene. This view-scene-item is the Graphics View Framework. For details on this concept, visit http://doc...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime