Skip to content

Class QfCamera

ClassList > QfCamera

Inherits the following classes: Popup

Inherited by the following classes: QFieldCamera

Public Properties

Type Name
property bool allowCaptureModeToggle
property bool captureLoaderActivated
property int captureOffset
property alias currentFeature
property alias currentLayer
property string currentPath
property var currentPosition
property var currentProjectedPosition
property bool isCapturing
property bool isPortraitMode
property bool isReady
property int panelExtraSpace
property int recordedDuration
property var recordedPositions
property color shieldColor
property string state
property bool subtitleRecordingActive
property bool userMirror
property int userRotation

Public Signals

Type Name
signal void canceled
signal void finished (string path)

Public Functions

Type Name
void discardCapture ()
void recordSubtitlePosition ()
void requiredPermissionsGranted ()
void tryActivateCaptureLoader ()
void videoResolutionForQuality (cameraResolution, quality)
void writeSubtitleFile (path)

Public Properties Documentation

property allowCaptureModeToggle

bool QfCamera::allowCaptureModeToggle;

property captureLoaderActivated

bool QfCamera::captureLoaderActivated;

property captureOffset

int QfCamera::captureOffset;

Remark:

This property is read-only


property currentFeature

alias QfCamera::currentFeature;

property currentLayer

alias QfCamera::currentLayer;

property currentPath

string QfCamera::currentPath;

property currentPosition

var QfCamera::currentPosition;

property currentProjectedPosition

var QfCamera::currentProjectedPosition;

property isCapturing

bool QfCamera::isCapturing;

property isPortraitMode

bool QfCamera::isPortraitMode;

Remark:

This property is read-only


property isReady

bool QfCamera::isReady;

Remark:

This property is read-only


property panelExtraSpace

int QfCamera::panelExtraSpace;

Remark:

This property is read-only


property recordedDuration

int QfCamera::recordedDuration;

property recordedPositions

var QfCamera::recordedPositions;

property shieldColor

color QfCamera::shieldColor;

Remark:

This property is read-only


property state

string QfCamera::state;

property subtitleRecordingActive

bool QfCamera::subtitleRecordingActive;

property userMirror

bool QfCamera::userMirror;

property userRotation

int QfCamera::userRotation;

Public Signals Documentation

signal canceled

void QfCamera::canceled;

signal finished

void QfCamera::finished;

Public Functions Documentation

function discardCapture

void QfCamera::discardCapture () 

function recordSubtitlePosition

void QfCamera::recordSubtitlePosition () 

Stores the position as it stands right now against the elapsed recording time. The details expression is deliberately not evaluated here: it can be arbitrarily costly and would compete with the running recorder. The cues are built when the recording is accepted instead.


function requiredPermissionsGranted

void QfCamera::requiredPermissionsGranted () 

function tryActivateCaptureLoader

void QfCamera::tryActivateCaptureLoader () 

function videoResolutionForQuality

void QfCamera::videoResolutionForQuality (
    cameraResolution,
    quality
) 

function writeSubtitleFile

void QfCamera::writeSubtitleFile (
    path
) 

Turns the positions gathered while recording into cues and writes the subtitle file next to the video at path.



The documentation for this class was generated from the following file src/gui/qml/QfCamera.qml