![]() |
Home · All Classes · All Functions · | ![]() |
This element is part of the Qt.multimedia 1.0 module.
The following example plays a wav file on mouse click.
import Qt 4.7 import Qt.multimedia 1.0 Text { text: "Click Me!"; font.pointSize: 24; width: 150; height: 50; SoundEffect { id: playSound source: "soundeffect.wav" } MouseArea { id: playArea anchors.fill: parent onPressed: { playSound.play() } } }
Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.1 |