Skip to Content
Hands-On GUI Programming with C++ and Qt5
book

Hands-On GUI Programming with C++ and Qt5

by Lee Zhi Eng
April 2018
Intermediate to advanced
404 pages
8h 27m
English
Packt Publishing
Content preview from Hands-On GUI Programming with C++ and Qt5

Setting up a new project

First, create a new Qt Widgets Application project.

Then, the first thing we need to do is to open up the project file (.pro) and add two keywords—multimedia and multimediawidgets:

QT += core gui multimedia multimediawidgets 

By detecting these keywords in the project file, Qt will include the multimedia module and all the widgets that are related to multimedia into your project when it compiles. The multimedia module includes four major components which are listed as follows:

  • Audio
  • Video
  • Camera
  • Radio

Each component includes a range of classes that provide respective functionality. By using this module, you no longer have to implement low-level, platform-specific code yourself. Let Qt do the job for you. It's really ...

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.
Start your free trial

You might also like

C++ GUI Programming with Qt 4

C++ GUI Programming with Qt 4

Jasmin Blanchette, Mark Summerfield

Publisher Resources

ISBN: 9781788397827Supplemental Content