Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.0
- import QtQuick.Controls 1.1
- import QtQuick.Controls.Styles 1.1
- import QtMultimedia 5.8
- Rectangle {
- id: main
- width: 600
- height: 400
- state: "mainMenu"
- property int margePixel: 30
- property int tailleInfoJeux: 200
- Image {
- id: background
- source:"qrc:/images/mainbkg"
- anchors.fill: parent
- fillMode: Image.PreserveAspectCrop
- sourceSize.height: 800
- }
- MediaPlayer{
- id: musicBkg
- source: "file:///Users/COMPUTER/Documents/candycrush/candy-crush-like-master/sound/bkg1.wav"
- autoLoad: true
- autoPlay: false
- volume: 1.0
- loops: Audio.Infinite
- Component.onCompleted: {
- //console.log(source==Qt.resolvedUrl("file:///Users/COMPUTER/Documents/candycrush/candy-crush-like-master/sound/Kalimba.mp3"))
- console.log(musicBkg.supportedAudioRoles())
- }
- }
- }
Add Comment
Please, Sign In to add comment