import QtQuick 2.0 import Ubuntu.Components 0.1 import QtMultimedia 5.0 // qtdeclarative5-qtmultimedia-plugin MainView { objectName: "mainView" applicationName: "testme" width: units.gu(50) height: units.gu(75) Tabs { Tab { title: i18n.tr("Audio") Audio { id: sampleSound //source: "../assets/bell.ogg" source: "/usr/share/sounds/ubuntu/stereo/bell.ogg" } page: Page { Column { spacing: units.gu(2) anchors.centerIn: parent Label { objectName: "audioTab_label" anchors.horizontalCenter: parent.horizontalCenter text: i18n.tr("Press button to play a sound.") } Button { anchors.horizontalCenter: parent.horizontalCenter objectName: "playButton" id: playButton text: i18n.tr("Play") onClicked: { sampleSound.play() } } } } } } // Tabs } // MainView