Advertisement
Guest User

main.qml

a guest
Oct 29th, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.85 KB | None | 0 0
  1. import QtQuick 2.0
  2. import QtQuick.Window 2.0
  3. import QtQuick.Controls 1.4
  4. import QtQuick.Controls.Material 2.0
  5. import QtGraphicalEffects 1.0
  6. import QtQuick.Controls.Styles 1.4
  7. import QtMultimedia 5.8
  8. import FaceFilter.uri 1.0
  9.  
  10. ApplicationWindow {
  11.     visible: true
  12.     width: Screen.desktopAvailableWidth
  13.     height: Screen.desktopAvailableHeight
  14.     title : "Test"
  15.     id : mainwindow
  16.  
  17.     Camera{
  18.         id: camera
  19.     }
  20.  
  21.     Rectangle {
  22.     width: 1080
  23.     height: 640
  24.         anchors.centerIn : parent
  25.  
  26.         FaceFilter {
  27.             id: filter
  28.         }
  29.  
  30.         VideoOutput {
  31.                 filters: [ filter ]
  32.                 id: cameraDisplay
  33.                 source: camera
  34.                 anchors.fill: parent
  35.                 focus : visible // to receive focus and capture key events when visible
  36.             }
  37.       }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement