Ubuntu Pastebin

Paste from Saviq at Wed, 21 Oct 2015 10:35:36 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
import QtQuick 2.4

Item {
    id: root
    width: 20
    height: 20
    Component.onCompleted: {
        var o;
        try {
            o = Qt.createQmlObject("import QtMultimedia 5.4; Audio { }", root)
        }
        catch(err) { console.debug("5.4 nope") }

        try {
            o = Qt.createQmlObject("import QtMultimedia 5.5; Audio { }", root)
        }
        catch(err) { console.debug("5.5 nope") }
        console.debug(o);
    }
}
Download as text