Play Audio File Using Qt Mobility
English Български
Play Audio File Using Qt Mobility
Overview
This article shows how to play audio file using QMediaPlayer [doc.qt.nokia.com] from Qt Mobility 1.1.
Project Configuration
Modify the project configuration .pro file by including Qt Mobility support:
Source Code
- .h
Include required headers:
Declare slot and private members:
- .cpp
Play a file located on the device:
Implement the declared slot: