Commit 4ee31e16 authored by Gus Grubba's avatar Gus Grubba

Clip video rectangle so when aspect ratio is adjusted, the image is not larger...

Clip video rectangle so when aspect ratio is adjusted, the image is not larger than the containing (window) rectagle.
parent 903ed024
...@@ -16,8 +16,9 @@ Rectangle { ...@@ -16,8 +16,9 @@ Rectangle {
id: _root id: _root
width: parent.width width: parent.width
height: parent.height height: parent.height
anchors.centerIn: parent
color: Qt.rgba(0,0,0,0.75) color: Qt.rgba(0,0,0,0.75)
clip: true
anchors.centerIn: parent
function adjustAspectRatio() function adjustAspectRatio()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment