Hi there,

i'm trying to build a simple Qt-Quick 2 Application playing a video file using QtGStreamer. The building process of QtGStreamer was fine, but now I try to build the qmlplayer2 example:

http://cgit.freedesktop.org/gstreame...les/qmlplayer2

The problem is, that Qt-Creator says. that the VideoItem is an unknown component.

Qt Code:
  1. import QtGStreamer 0.10
To copy to clipboard, switch view to plain text mode 
didn't worked first, but by creating a .qmltypes-file with qmlplugindump I solved the problem.

plugins.qmltypes
Qt Code:
  1. import QtQuick.tooling 1.1
  2.  
  3. // This file describes the plugin-supplied types contained in the library.
  4. // It is used for QML tooling purposes only.
  5. //
  6. // This file was auto-generated by:
  7. // 'qmlplugindump QtGStreamer 0.10 /home/mathis/Qt5.2/5.2.0/gcc/imports/QtGStreamer'
  8.  
  9. Module {
  10. Component {
  11. name: "QGst::Quick::VideoItem"
  12. defaultProperty: "data"
  13. prototype: "QQuickItem"
  14. exports: ["VideoItem 0.10"]
  15. exportMetaObjectRevisions: [0]
  16. Property { name: "surface"; type: "QGst::Quick::VideoSurface"; isPointer: true }
  17. }
  18. Component {
  19. name: "QGst::Quick::VideoSurface"
  20. prototype: "QObject"
  21. exports: ["VideoSurface 0.10"]
  22. exportMetaObjectRevisions: [0]
  23. }
  24.  
  25. }
To copy to clipboard, switch view to plain text mode 

Now I don't understand why the VideoItem is unknown, though it's defined in the type file.

Has anybody an idea how I can solve this?


Best regards