Play Audio File Using Qt Mobility

From Qt Wiki
Revision as of 16:17, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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:

Categories: