diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoMetadata.qml | 4 | ||||
-rw-r--r-- | examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoMetadata.qml b/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoMetadata.qml index c657c634c..b9672f1c5 100644 --- a/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoMetadata.qml +++ b/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoMetadata.qml @@ -124,6 +124,10 @@ Scene { color: "#e0e0e0" text: "Seekable:" + content.contentItem().metaData.seekable } + Text { + color: "#e0e0e0" + text: "Orientation:" + content.contentItem().metaData.orientation + } } } diff --git a/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp b/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp index 7ee3eb541..513df4f31 100644 --- a/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp +++ b/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.cpp @@ -64,7 +64,7 @@ VideoWidget::VideoWidget(QWidget *parent) setAttribute(Qt::WA_NoSystemBackground, true); QPalette palette = this->palette(); - palette.setColor(QPalette::Background, Qt::black); + palette.setColor(QPalette::Window, Qt::black); setPalette(palette); setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); |