Designing a user interface for music players

Let's move on to the next project. In this project, we will be building an audio player using Qt. Perform the following steps:

  1. As with the previous project, we will be creating a Qt Widgets Application project.
  2. Open up the project file (.pro), and add in the multimedia module:
QT += core gui multimedia 
  1. We added the multimedia text so that Qt includes classes related to the multimedia module in our project. Next, open up mainwindow.ui, and refer to the following screenshot to construct the user interface:

We basically added a Label at the top, followed by a Horizontal Slider and another Label ...

Get Hands-On GUI Programming with C++ and Qt5 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.