CameraFocusThe CameraFocus type provides interface for focus related camera settings. More... Inherits QtObject Methods
Detailed DescriptionCameraFocus is part of the QtMultimedia 5.0 module. This type allows control over manual and automatic focus settings, including information about any parts of the camera frame that are selected for autofocusing. It should not be constructed separately, instead the focus property of a Camera should be used. import QtQuick 2.0 import QtMultimedia 5.0 Item { width: 640 height: 360 Camera { id: camera focus { focusMode: Camera.FocusMacro focusPointMode: Camera.FocusPointCustom customFocusPoint: Qt.point(0.2, 0.2) // Focus relative to top-left corner } } VideoOutput { source: camera anchors.fill: parent } } Method DocumentationReturns true if the supplied mode is a supported focus mode, and false otherwise. Returns true if the supplied mode is a supported focus point mode, and false otherwise. |