How to do it...

Let's make a simple video converter with the following steps:

  1. Download FFmpeg (static package) from http://ffmpeg.zeranoe.com/builds and extract the contents to C:/FFmpeg/.
  2. Open Qt Creator and create a new Qt Widgets Application project by going to File | New File or Project.
  3. Open mainwindow.uiwe're going to work on the program's user interface. Its UI is very similar to the previous example, except that we add an extra text-edit widget to the canvas, just under the combo box:
  1. Double-click the combo box and a window will appear to edit the combo box. We will add three items to the combo box list by clicking the + button ...

Get Qt5 C++ GUI Programming Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.