summaryrefslogtreecommitdiff
path: root/src/QGst/Ui/graphicsvideosurface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/QGst/Ui/graphicsvideosurface.h')
-rw-r--r--src/QGst/Ui/graphicsvideosurface.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/QGst/Ui/graphicsvideosurface.h b/src/QGst/Ui/graphicsvideosurface.h
index bd17749..c22b110 100644
--- a/src/QGst/Ui/graphicsvideosurface.h
+++ b/src/QGst/Ui/graphicsvideosurface.h
@@ -38,13 +38,14 @@ class GraphicsVideoSurfacePrivate;
*
* Example
* \code
- * QGraphicsView *view = new QGraphicsView;
+ * QGraphicsScene *scene = new QGraphicsScene;
+ * QGraphicsView *view = new QGraphicsView (scene);
* view->setViewport(new QGLWidget); //recommended
* QGst::Ui::GraphicsVideoSurface *surface = new QGst::Ui::GraphicsVideoSurface(view);
* ...
* QGst::Ui::GraphicsVideoWidget *widget = new QGst::Ui::GraphicsVideoWidget;
* widget->setSurface(surface);
- * view->addItem(widget);
+ * scene->addItem(widget);
* \endcode
*
* This class internally creates and uses either a "qtglvideosink" or a "qtvideosink"