![]() |
Home · All Classes · All Functions · Overviews |
The SoundEffect element provides a way to play sound effects in qml. More...
The following example plays a wav file on mouse click.
SoundEffect {
id: playSound
source: "test.wav"
}
MouseRegion {
id: playArea
anchors.fill: parent
onPressed: {
playSound.play()
}
}
See also SoundEffect.
| read-onlyduration : int |
This property holds the duration in milliseconds of the current source audio.
| loopCount : int |
This property provides a way to control the number of times to repeat the sound on each play().
| muted : bool |
This property provides a way to control muting.
| source : QUrl |
This property provides a way to control the sound to play.
| volume : int |
This property provides a way to control the volume for playback.
| Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.7.0 |