I'm developing an application that requires the front camera to occupy the entire background screen, style the snapchat application, but using QML the camera with spacing at the top and bottom of the camera. QML Responsible for the camera:
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
import QtMultimedia 5.5
import QtQuick.Window 2.2
Item {
id: item1
width: 720
height: 1080
property alias camera: camera
property alias video: video
Camera {
id: camera
imageProcessing.whiteBalanceMode: CameraImageProcessing.WhiteBalanceFlash
flash.mode: Camera.FlashRedEyeReduction
}
VideoOutput {
id : video
anchors.fill: parent
orientation: -90
source: camera
focus : visible // to receive focus and capture key events when visible
}
}