Snippet is for the Qt QML "Import Statements" page. Show how to use the
namespace to reference types from different modules
Change-Id: I8c49703194a18657439afdef75e47ff7e97be653
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
//! [imports]
import QtQuick 2.0 as Project
import QtMultimedia 5.0 as Project
-//! [imports]
-Item {
+Project.Rectangle {
+ width: 100; height: 50
+
+ Project.Audio {
+ source: "music.wav"
+ autoPlay: true
+ }
}
+//! [imports]
+