Let's get straight to the business. We will develop a simple GUI-based music player using QT Phonon. The goal of this project is to learn how to put together important components of the Phonon framework discussed earlier. It will help us get familiar with the overall Phonon framework. In the second project, we will learn an even simpler way to accomplish the same task.
The application to be developed here will play an opened audio file. It will have GUI widgets to control the playback and add various effects to the streaming audio. The screenshot of the music player application is shown in the following illustration of its graphical user interface:
The illustrated music player application uses the following QT widgets.
QMainWindow
: This class provides the main application window. In this window, other elements such as buttons and menus are added in a layout.QToolButton
: The play, pause, and stop buttons are created using theQToolButton...