| 12345678910111213141516171819202122232425262728293031323334 |
- import QtQuick 2.7
- import QtMultimedia 5.12
- Item {
- width: 640
- height: 360
- Camera {
- id: camera
- imageCapture {
- onImageCaptured: {
- // Show the preview in an Image
- photoPreview.source = preview
- }
- }
- }
- VideoOutput {
- source: camera
- focus : visible // to receive focus and capture key events when visible
- anchors.fill: parent
- MouseArea {
- anchors.fill: parent;
- onClicked: camera.imageCapture.capture();
- }
- }
- Image {
- id: photoPreview
- }
- }
|