diff -Naur qt-gstreamer-orig/examples/CMakeLists.txt qt-gstreamer/examples/CMakeLists.txt
--- qt-gstreamer-orig/examples/CMakeLists.txt	2013-06-28 11:29:15.932976736 +0200
+++ qt-gstreamer/examples/CMakeLists.txt	2013-06-28 18:08:42.204345894 +0200
@@ -33,4 +33,10 @@
 if (Qt4or5_Quick1_FOUND)
     add_subdirectory(qmlplayer)
     example_distcheck(qmlplayer)
+
+    if (USE_QT5)
+        add_subdirectory(qmlplayer2)
+        example_distcheck(qmlplayer2)
+    endif()
+
 endif()
diff -Naur qt-gstreamer-orig/examples/qmlplayer/qmlplayer.qml qt-gstreamer/examples/qmlplayer/qmlplayer.qml
--- qt-gstreamer-orig/examples/qmlplayer/qmlplayer.qml	2013-06-28 11:29:15.920976606 +0200
+++ qt-gstreamer/examples/qmlplayer/qmlplayer.qml	2013-06-28 18:18:41.695097531 +0200
@@ -16,7 +16,7 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 import QtQuick 1.0
-import QtGStreamer 0.10
+import QtGStreamer.QtQuick1 0.10
 
 Rectangle {
     id: window
diff -Naur qt-gstreamer-orig/examples/qmlplayer2/CMakeLists.txt qt-gstreamer/examples/qmlplayer2/CMakeLists.txt
--- qt-gstreamer-orig/examples/qmlplayer2/CMakeLists.txt	1970-01-01 01:00:00.000000000 +0100
+++ qt-gstreamer/examples/qmlplayer2/CMakeLists.txt	2013-06-28 18:14:54.784552941 +0200
@@ -0,0 +1,51 @@
+project(qtgst-example-qmlplayer2)
+
+if (NOT BUILDING_QTGSTREAMER)
+    set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/modules)
+    find_package(Qt4or5 COMPONENTS Core Gui Widgets Quick2 REQUIRED)
+    if (${QT_VERSION} STREQUAL "5")
+        find_package(Qt5GStreamer REQUIRED)
+    else()
+        find_package(QtGStreamer REQUIRED)
+    endif()
+
+    find_package(OpenGL)
+    find_package(OpenGLES2)
+
+    set(CMAKE_AUTOMOC ON)
+    set(CMAKE_INCLUDE_CURRENT_DIR ON)
+else()
+    # allow the example to run from the build tree without installing QtGStreamer
+    add_definitions(
+        -DQTVIDEOSINK_PATH="${QtGStreamer_BINARY_DIR}/elements/gstqtvideosink"
+        -DUNINSTALLED_IMPORTS_DIR="${QtGStreamer_BINARY_DIR}/src/qml"
+    )
+endif()
+
+include_directories(${QTGSTREAMER_INCLUDES})
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${QTGSTREAMER_FLAGS}")
+add_definitions(${QTGSTREAMER_DEFINITIONS})
+
+if (Qt4or5_OpenGL_FOUND AND (OPENGL_FOUND OR OPENGLES2_FOUND))
+    if (OPENGLES2_FOUND)
+        include_directories(${OPENGLES2_INCLUDE_DIR})
+    else()
+        include_directories(${OPENGL_INCLUDE_DIR})
+    endif()
+else()
+    add_definitions(-DQMLPLAYER_NO_OPENGL)
+endif()
+
+set(qmlplayer2_SOURCES main.cpp)
+qt4or5_add_resources(qmlplayer2_rcc_SOURCES qmlplayer2.qrc)
+
+add_executable(qmlplayer2
+    ${qmlplayer2_SOURCES}
+    ${qmlplayer2_rcc_SOURCES}
+)
+target_link_libraries(qmlplayer2 ${QTGSTREAMER_UI_LIBRARIES})
+qt4or5_use_modules(qmlplayer2 Core Gui Widgets Quick2)
+if (Qt4or5_OpenGL_FOUND AND (OPENGL_FOUND OR OPENGLES2_FOUND))
+    qt4or5_use_modules(qmlplayer2 OpenGL)
+endif()
+
diff -Naur qt-gstreamer-orig/examples/qmlplayer2/main.cpp qt-gstreamer/examples/qmlplayer2/main.cpp
--- qt-gstreamer-orig/examples/qmlplayer2/main.cpp	1970-01-01 01:00:00.000000000 +0100
+++ qt-gstreamer/examples/qmlplayer2/main.cpp	2013-06-28 18:14:22.808192018 +0200
@@ -0,0 +1,48 @@
+/*
+    Copyright (C) 2013 basysKom GmbH <info@basyskom.com>
+      @author Benjamin Federau <benjamin.federau@basyskom.com>
+
+    This library is free software; you can redistribute it and/or modify
+    it under the terms of the GNU Lesser General Public License as published
+    by the Free Software Foundation; either version 2.1 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+#include <QtWidgets/QApplication>
+#include <QtQuick/QQuickView>
+#include <QtQml/QQmlContext>
+#include <QtQml/QQmlEngine>
+#include <QtQml/qqml.h>
+
+#ifndef QMLPLAYER_NO_OPENGL
+# include <QtOpenGL/QGLWidget>
+#endif
+
+int main(int argc, char **argv)
+{
+#if defined(QTVIDEOSINK_PATH)
+    //this allows the example to run from the QtGStreamer build tree without installing QtGStreamer
+    setenv("GST_PLUGIN_PATH", QTVIDEOSINK_PATH, 0);
+#endif
+
+    QApplication app(argc, argv);
+
+    QQuickView view;
+
+#if defined(UNINSTALLED_IMPORTS_DIR)
+    //this allows the example to run from the QtGStreamer build tree without installing QtGStreamer
+    view.engine()->addImportPath(QLatin1String(UNINSTALLED_IMPORTS_DIR));
+#endif
+
+    view.setSource(QUrl(QLatin1String("qrc:///qmlplayer2.qml")));
+    view.show();
+
+    return app.exec();
+}
diff -Naur qt-gstreamer-orig/examples/qmlplayer2/qmlplayer2.pro qt-gstreamer/examples/qmlplayer2/qmlplayer2.pro
--- qt-gstreamer-orig/examples/qmlplayer2/qmlplayer2.pro	1970-01-01 01:00:00.000000000 +0100
+++ qt-gstreamer/examples/qmlplayer2/qmlplayer2.pro	2013-06-13 18:28:48.000000000 +0200
@@ -0,0 +1,28 @@
+# This is a qmake project file, provided as an example on how to use qmake with QtGStreamer.
+
+TEMPLATE = app
+TARGET = qmlplayer2
+
+# produce nice compilation output
+CONFIG += silent
+
+# Tell qmake to use pkg-config to find QtGStreamer.
+CONFIG += link_pkgconfig
+
+# Now tell qmake to link to QtGStreamer and also use its include path and Cflags.
+PKGCONFIG += QtGStreamer-0.10 QtGStreamerUi-0.10
+
+# Recommended if you are using g++ 4.5 or later. Must be removed for other compilers.
+#QMAKE_CXXFLAGS += -std=c++0x
+
+# Recommended, to avoid possible issues with the "emit" keyword
+# You can otherwise also define QT_NO_EMIT, but notice that this is not a documented Qt macro.
+DEFINES += QT_NO_KEYWORDS
+
+# link against QtDeclarative and QtOpenGL
+QT += declarative opengl
+
+# Input
+HEADERS += player.h
+SOURCES += main.cpp player.cpp
+RESOURCES += qmlplayer2.qrc
diff -Naur qt-gstreamer-orig/examples/qmlplayer2/qmlplayer2.qml qt-gstreamer/examples/qmlplayer2/qmlplayer2.qml
--- qt-gstreamer-orig/examples/qmlplayer2/qmlplayer2.qml	1970-01-01 01:00:00.000000000 +0100
+++ qt-gstreamer/examples/qmlplayer2/qmlplayer2.qml	2013-06-28 18:19:00.107303667 +0200
@@ -0,0 +1,83 @@
+/*
+    Copyright (C) 2013 basysKom GmbH <info@basyskom.com>
+      @author Benjamin Federau <benjamin.federau@basyskom.com>
+
+    This library is free software; you can redistribute it and/or modify
+    it under the terms of the GNU Lesser General Public License as published
+    by the Free Software Foundation; either version 2.1 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+import QtQuick 2.0
+import QtGStreamer.QtQuick2 0.10
+
+Rectangle {
+    id: window
+    width: 600
+    height: 300
+
+    Column {
+
+        VideoItem {
+            id: videoOutput
+
+            player: player
+            width: window.width
+            height: 260
+            
+        }
+
+        BasicMediaPlayer {
+            id: player
+            source: "http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi"
+        }
+
+        Row {
+            id: buttons
+
+            width: window.width
+            height: 35
+            spacing: 5
+
+            Rectangle {
+                id: playButton
+                color: "black"
+
+                width: 60
+                height: 30
+
+                Text { text: "Play"; color: "white"; anchors.centerIn: parent }
+                MouseArea { anchors.fill: parent; onClicked: player.play() }
+            }
+
+            Rectangle {
+                id: pauseButton
+                color: "black"
+
+                width: 60
+                height: 30
+
+                Text { text: "Pause"; color: "white"; anchors.centerIn: parent }
+                MouseArea { anchors.fill: parent; onClicked: { player.pause(); } }
+            }
+
+            Rectangle {
+                id: stopButton
+                color: "black"
+
+                width: 60
+                height: 30
+
+                Text { text: "Stop"; color: "white"; anchors.centerIn: parent }
+                MouseArea { anchors.fill: parent; onClicked: player.stop() }
+            }
+        }
+    }
+}
diff -Naur qt-gstreamer-orig/examples/qmlplayer2/qmlplayer2.qrc qt-gstreamer/examples/qmlplayer2/qmlplayer2.qrc
--- qt-gstreamer-orig/examples/qmlplayer2/qmlplayer2.qrc	1970-01-01 01:00:00.000000000 +0100
+++ qt-gstreamer/examples/qmlplayer2/qmlplayer2.qrc	2013-06-13 18:28:48.000000000 +0200
@@ -0,0 +1,6 @@
+<!DOCTYPE RCC>
+<RCC version="1.0">
+    <qresource>
+        <file>qmlplayer2.qml</file>
+    </qresource>
+</RCC>
