API reference - Class QCamera

Notation used in Ruby API documentation

Module: QtMultimedia

Description: Binding of QCamera

Class hierarchy: QCamera » QMediaObject » QObject

Sub-classes: CaptureMode, QFlags_CaptureMode, Error, QFlags_Error, LockChangeReason, QFlags_LockChangeReason, LockStatus, QFlags_LockStatus, LockType, QFlags_LockType, Position, QFlags_Position, State, QFlags_State, Status, QFlags_Status, FrameRateRange

Public constructors

new QCameranew(QObject ptr parent = nullptr)Constructor QCamera::QCamera(QObject *parent)
new QCameranew(bytes deviceName,
QObject ptr parent = nullptr)
Constructor QCamera::QCamera(const QByteArray &deviceName, QObject *parent)
new QCameranew(const QCameraInfo cameraInfo,
QObject ptr parent = nullptr)
Constructor QCamera::QCamera(const QCameraInfo &cameraInfo, QObject *parent)
new QCameranew(const QCamera_Position position,
QObject ptr parent = nullptr)
Constructor QCamera::QCamera(QCamera::Position position, QObject *parent)

Public methods

void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
[const]QMultimedia_AvailabilityStatusavailabilityVirtual method QMultimedia::AvailabilityStatus QCamera::availability()
[signal]voidavailabilityChanged_bool(bool available)Signal declaration for QCamera::availabilityChanged(bool available)
[signal]voidavailabilityChanged_status(const QMultimedia_AvailabilityStatus availability)Signal declaration for QCamera::availabilityChanged(QMultimedia::AvailabilityStatus availability)
boolbind(QObject ptr arg1)Virtual method bool QCamera::bind(QObject *)
[const]QCamera_QFlags_CaptureModecaptureModeMethod QFlags<QCamera::CaptureMode> QCamera::captureMode()
voidcaptureMode=(QCamera_QFlags_CaptureMode mode)Method void QCamera::setCaptureMode(QFlags<QCamera::CaptureMode> mode)
[signal]voidcaptureModeChanged(QCamera_QFlags_CaptureMode arg1)Signal declaration for QCamera::captureModeChanged(QFlags<QCamera::CaptureMode>)
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QCamera::destroyed(QObject *)
voidemit_availabilityChanged_bool(bool available)Emitter for signal void QCamera::availabilityChanged(bool available)
voidemit_availabilityChanged_status(const QMultimedia_AvailabilityStatus availability)Emitter for signal void QCamera::availabilityChanged(QMultimedia::AvailabilityStatus availability)
voidemit_captureModeChanged(QCamera_QFlags_CaptureMode arg1)Emitter for signal void QCamera::captureModeChanged(QFlags<QCamera::CaptureMode>)
voidemit_destroyed(QObject ptr arg1 = nullptr)Emitter for signal void QCamera::destroyed(QObject *)
voidemit_error_sig(const QCamera_Error arg1)Emitter for signal void QCamera::error(QCamera::Error)
voidemit_lockFailedEmitter for signal void QCamera::lockFailed()
voidemit_lockStatusChanged(const QCamera_LockStatus status,
const QCamera_LockChangeReason reason)
Emitter for signal void QCamera::lockStatusChanged(QCamera::LockStatus status, QCamera::LockChangeReason reason)
voidemit_lockStatusChanged_withType(const QCamera_LockType lock,
const QCamera_LockStatus status,
const QCamera_LockChangeReason reason)
Emitter for signal void QCamera::lockStatusChanged(QCamera::LockType lock, QCamera::LockStatus status, QCamera::LockChangeReason reason)
voidemit_lockedEmitter for signal void QCamera::locked()
voidemit_metaDataAvailableChanged(bool available)Emitter for signal void QCamera::metaDataAvailableChanged(bool available)
voidemit_metaDataChangedEmitter for signal void QCamera::metaDataChanged()
voidemit_metaDataChanged_kv(string key,
variant value)
Emitter for signal void QCamera::metaDataChanged(const QString &key, const QVariant &value)
voidemit_notifyIntervalChanged(int milliSeconds)Emitter for signal void QCamera::notifyIntervalChanged(int milliSeconds)
voidemit_objectNameChanged(string objectName)Emitter for signal void QCamera::objectNameChanged(const QString &objectName)
voidemit_stateChanged(const QCamera_State state)Emitter for signal void QCamera::stateChanged(QCamera::State state)
voidemit_statusChanged(const QCamera_Status status)Emitter for signal void QCamera::statusChanged(QCamera::Status status)
[const]QCamera_ErrorerrorMethod QCamera::Error QCamera::error()
[const]stringerrorStringMethod QString QCamera::errorString()
[signal]voiderror_sig(const QCamera_Error arg1)Signal declaration for QCamera::error(QCamera::Error)
boolevent(QEvent ptr event)Virtual method bool QCamera::event(QEvent *event)
booleventFilter(QObject ptr watched,
QEvent ptr event)
Virtual method bool QCamera::eventFilter(QObject *watched, QEvent *event)
[const]QCameraExposure ptrexposureMethod QCameraExposure *QCamera::exposure()
[const]QCameraFocus ptrfocusMethod QCameraFocus *QCamera::focus()
[const]QCameraImageProcessing ptrimageProcessingMethod QCameraImageProcessing *QCamera::imageProcessing()
[const]boolisAvailableVirtual method bool QCamera::isAvailable()
[const]boolisCaptureModeSupported?(QCamera_QFlags_CaptureMode mode)Method bool QCamera::isCaptureModeSupported(QFlags<QCamera::CaptureMode> mode)
voidloadMethod void QCamera::load()
[signal]voidlockFailedSignal declaration for QCamera::lockFailed()
[const]QCamera_LockStatuslockStatusMethod QCamera::LockStatus QCamera::lockStatus()
[const]QCamera_LockStatuslockStatus(const QCamera_LockType lock)Method QCamera::LockStatus QCamera::lockStatus(QCamera::LockType lock)
[signal]voidlockStatusChanged(const QCamera_LockStatus status,
const QCamera_LockChangeReason reason)
Signal declaration for QCamera::lockStatusChanged(QCamera::LockStatus status, QCamera::LockChangeReason reason)
[signal]voidlockStatusChanged_withType(const QCamera_LockType lock,
const QCamera_LockStatus status,
const QCamera_LockChangeReason reason)
Signal declaration for QCamera::lockStatusChanged(QCamera::LockType lock, QCamera::LockStatus status, QCamera::LockChangeReason reason)
[signal]voidlockedSignal declaration for QCamera::locked()
[signal]voidmetaDataAvailableChanged(bool available)Signal declaration for QCamera::metaDataAvailableChanged(bool available)
[signal]voidmetaDataChangedSignal declaration for QCamera::metaDataChanged()
[signal]voidmetaDataChanged_kv(string key,
variant value)
Signal declaration for QCamera::metaDataChanged(const QString &key, const QVariant &value)
[signal]voidnotifyIntervalChanged(int milliSeconds)Signal declaration for QCamera::notifyIntervalChanged(int milliSeconds)
[signal]voidobjectNameChanged(string objectName)Signal declaration for QCamera::objectNameChanged(const QString &objectName)
[const]QCamera_QFlags_LockTyperequestedLocksMethod QFlags<QCamera::LockType> QCamera::requestedLocks()
voidsearchAndLockMethod void QCamera::searchAndLock()
voidsearchAndLock(QCamera_QFlags_LockType locks)Method void QCamera::searchAndLock(QFlags<QCamera::LockType> locks)
[const]QMediaService ptrserviceVirtual method QMediaService *QCamera::service()
voidsetCaptureMode(QCamera_QFlags_CaptureMode mode)Method void QCamera::setCaptureMode(QFlags<QCamera::CaptureMode> mode)
voidsetViewfinder(QVideoWidget ptr viewfinder)Method void QCamera::setViewfinder(QVideoWidget *viewfinder)
voidsetViewfinder(QGraphicsVideoItem ptr viewfinder)Method void QCamera::setViewfinder(QGraphicsVideoItem *viewfinder)
voidsetViewfinder(QAbstractVideoSurface ptr surface)Method void QCamera::setViewfinder(QAbstractVideoSurface *surface)
voidsetViewfinderSettings(const QCameraViewfinderSettings settings)Method void QCamera::setViewfinderSettings(const QCameraViewfinderSettings &settings)
voidstartMethod void QCamera::start()
[const]QCamera_StatestateMethod QCamera::State QCamera::state()
[signal]voidstateChanged(const QCamera_State state)Signal declaration for QCamera::stateChanged(QCamera::State state)
[const]QCamera_StatusstatusMethod QCamera::Status QCamera::status()
[signal]voidstatusChanged(const QCamera_Status status)Signal declaration for QCamera::statusChanged(QCamera::Status status)
voidstopMethod void QCamera::stop()
[const]QCamera_QFlags_LockTypesupportedLocksMethod QFlags<QCamera::LockType> QCamera::supportedLocks()
[const]QCamera_FrameRateRange[]supportedViewfinderFrameRateRanges(const QCameraViewfinderSettings settings = QCameraViewfinderSettings())Method QList<QCamera::FrameRateRange> QCamera::supportedViewfinderFrameRateRanges(const QCameraViewfinderSettings &settings)
[const]QVideoFrame_PixelFormat[]supportedViewfinderPixelFormats(const QCameraViewfinderSettings settings = QCameraViewfinderSettings())Method QList<QVideoFrame::PixelFormat> QCamera::supportedViewfinderPixelFormats(const QCameraViewfinderSettings &settings)
[const]QSize[]supportedViewfinderResolutions(const QCameraViewfinderSettings settings = QCameraViewfinderSettings())Method QList<QSize> QCamera::supportedViewfinderResolutions(const QCameraViewfinderSettings &settings)
[const]QCameraViewfinderSettings[]supportedViewfinderSettings(const QCameraViewfinderSettings settings = QCameraViewfinderSettings())Method QList<QCameraViewfinderSettings> QCamera::supportedViewfinderSettings(const QCameraViewfinderSettings &settings)
voidunbind(QObject ptr arg1)Virtual method void QCamera::unbind(QObject *)
voidunloadMethod void QCamera::unload()
voidunlockMethod void QCamera::unlock()
voidunlock(QCamera_QFlags_LockType locks)Method void QCamera::unlock(QFlags<QCamera::LockType> locks)
[const]QCameraViewfinderSettingsviewfinderSettingsMethod QCameraViewfinderSettings QCamera::viewfinderSettings()
voidviewfinderSettings=(const QCameraViewfinderSettings settings)Method void QCamera::setViewfinderSettings(const QCameraViewfinderSettings &settings)

Public static methods and constants

[static,const]QCamera_StateActiveStateEnum constant QCamera::ActiveState
[static,const]QCamera_StatusActiveStatusEnum constant QCamera::ActiveStatus
[static,const]QCamera_PositionBackFaceEnum constant QCamera::BackFace
[static,const]QCamera_ErrorCameraErrorEnum constant QCamera::CameraError
[static,const]QCamera_CaptureModeCaptureStillImageEnum constant QCamera::CaptureStillImage
[static,const]QCamera_CaptureModeCaptureVideoEnum constant QCamera::CaptureVideo
[static,const]QCamera_CaptureModeCaptureViewfinderEnum constant QCamera::CaptureViewfinder
[static,const]QCamera_PositionFrontFaceEnum constant QCamera::FrontFace
[static,const]QCamera_ErrorInvalidRequestErrorEnum constant QCamera::InvalidRequestError
[static,const]QCamera_StateLoadedStateEnum constant QCamera::LoadedState
[static,const]QCamera_StatusLoadedStatusEnum constant QCamera::LoadedStatus
[static,const]QCamera_StatusLoadingStatusEnum constant QCamera::LoadingStatus
[static,const]QCamera_LockChangeReasonLockAcquiredEnum constant QCamera::LockAcquired
[static,const]QCamera_LockTypeLockExposureEnum constant QCamera::LockExposure
[static,const]QCamera_LockChangeReasonLockFailedEnum constant QCamera::LockFailed
[static,const]QCamera_LockTypeLockFocusEnum constant QCamera::LockFocus
[static,const]QCamera_LockChangeReasonLockLostEnum constant QCamera::LockLost
[static,const]QCamera_LockChangeReasonLockTemporaryLostEnum constant QCamera::LockTemporaryLost
[static,const]QCamera_LockTypeLockWhiteBalanceEnum constant QCamera::LockWhiteBalance
[static,const]QCamera_LockStatusLockedEnum constant QCamera::Locked
[static,const]QCamera_ErrorNoErrorEnum constant QCamera::NoError
[static,const]QCamera_LockTypeNoLockEnum constant QCamera::NoLock
[static,const]QCamera_ErrorNotSupportedFeatureErrorEnum constant QCamera::NotSupportedFeatureError
[static,const]QCamera_LockStatusSearchingEnum constant QCamera::Searching
[static,const]QCamera_ErrorServiceMissingErrorEnum constant QCamera::ServiceMissingError
[static,const]QCamera_StatusStandbyStatusEnum constant QCamera::StandbyStatus
[static,const]QCamera_StatusStartingStatusEnum constant QCamera::StartingStatus
[static,const]QCamera_StatusStoppingStatusEnum constant QCamera::StoppingStatus
[static,const]QCamera_StatusUnavailableStatusEnum constant QCamera::UnavailableStatus
[static,const]QCamera_StateUnloadedStateEnum constant QCamera::UnloadedState
[static,const]QCamera_StatusUnloadedStatusEnum constant QCamera::UnloadedStatus
[static,const]QCamera_StatusUnloadingStatusEnum constant QCamera::UnloadingStatus
[static,const]QCamera_LockStatusUnlockedEnum constant QCamera::Unlocked
[static,const]QCamera_PositionUnspecifiedPositionEnum constant QCamera::UnspecifiedPosition
[static,const]QCamera_LockChangeReasonUserRequestEnum constant QCamera::UserRequest
bytes[]availableDevicesStatic method QList<QByteArray> QCamera::availableDevices()
stringdeviceDescription(bytes device)Static method QString QCamera::deviceDescription(const QByteArray &device)
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QCamera::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QCamera::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidaddPropertyWatch(bytes name)Method void QCamera::addPropertyWatch(const QByteArray &name)
voidchildEvent(QChildEvent ptr event)Virtual method void QCamera::childEvent(QChildEvent *event)
voidcustomEvent(QEvent ptr event)Virtual method void QCamera::customEvent(QEvent *event)
voiddisconnectNotify(const QMetaMethod signal)Virtual method void QCamera::disconnectNotify(const QMetaMethod &signal)
[const]boolisSignalConnected(const QMetaMethod signal)Method bool QCamera::isSignalConnected(const QMetaMethod &signal)
[const]intreceivers(string signal)Method int QCamera::receivers(const char *signal)
voidremovePropertyWatch(bytes name)Method void QCamera::removePropertyWatch(const QByteArray &name)
[const]QObject ptrsenderMethod QObject *QCamera::sender()
[const]intsenderSignalIndexMethod int QCamera::senderSignalIndex()
voidtimerEvent(QTimerEvent ptr event)Virtual method void QCamera::timerEvent(QTimerEvent *event)

Detailed description

ActiveState

Signature: [static,const] QCamera_State ActiveState

Description: Enum constant QCamera::ActiveState

Python specific notes:
The object exposes a readable attribute 'ActiveState'. This is the getter.

ActiveStatus

Signature: [static,const] QCamera_Status ActiveStatus

Description: Enum constant QCamera::ActiveStatus

Python specific notes:
The object exposes a readable attribute 'ActiveStatus'. This is the getter.

BackFace

Signature: [static,const] QCamera_Position BackFace

Description: Enum constant QCamera::BackFace

Python specific notes:
The object exposes a readable attribute 'BackFace'. This is the getter.

CameraError

Signature: [static,const] QCamera_Error CameraError

Description: Enum constant QCamera::CameraError

Python specific notes:
The object exposes a readable attribute 'CameraError'. This is the getter.

CaptureStillImage

Signature: [static,const] QCamera_CaptureMode CaptureStillImage

Description: Enum constant QCamera::CaptureStillImage

Python specific notes:
The object exposes a readable attribute 'CaptureStillImage'. This is the getter.

CaptureVideo

Signature: [static,const] QCamera_CaptureMode CaptureVideo

Description: Enum constant QCamera::CaptureVideo

Python specific notes:
The object exposes a readable attribute 'CaptureVideo'. This is the getter.

CaptureViewfinder

Signature: [static,const] QCamera_CaptureMode CaptureViewfinder

Description: Enum constant QCamera::CaptureViewfinder

Python specific notes:
The object exposes a readable attribute 'CaptureViewfinder'. This is the getter.

FrontFace

Signature: [static,const] QCamera_Position FrontFace

Description: Enum constant QCamera::FrontFace

Python specific notes:
The object exposes a readable attribute 'FrontFace'. This is the getter.

InvalidRequestError

Signature: [static,const] QCamera_Error InvalidRequestError

Description: Enum constant QCamera::InvalidRequestError

Python specific notes:
The object exposes a readable attribute 'InvalidRequestError'. This is the getter.

LoadedState

Signature: [static,const] QCamera_State LoadedState

Description: Enum constant QCamera::LoadedState

Python specific notes:
The object exposes a readable attribute 'LoadedState'. This is the getter.

LoadedStatus

Signature: [static,const] QCamera_Status LoadedStatus

Description: Enum constant QCamera::LoadedStatus

Python specific notes:
The object exposes a readable attribute 'LoadedStatus'. This is the getter.

LoadingStatus

Signature: [static,const] QCamera_Status LoadingStatus

Description: Enum constant QCamera::LoadingStatus

Python specific notes:
The object exposes a readable attribute 'LoadingStatus'. This is the getter.

LockAcquired

Signature: [static,const] QCamera_LockChangeReason LockAcquired

Description: Enum constant QCamera::LockAcquired

Python specific notes:
The object exposes a readable attribute 'LockAcquired'. This is the getter.

LockExposure

Signature: [static,const] QCamera_LockType LockExposure

Description: Enum constant QCamera::LockExposure

Python specific notes:
The object exposes a readable attribute 'LockExposure'. This is the getter.

LockFailed

Signature: [static,const] QCamera_LockChangeReason LockFailed

Description: Enum constant QCamera::LockFailed

Python specific notes:
The object exposes a readable attribute 'LockFailed'. This is the getter.

LockFocus

Signature: [static,const] QCamera_LockType LockFocus

Description: Enum constant QCamera::LockFocus

Python specific notes:
The object exposes a readable attribute 'LockFocus'. This is the getter.

LockLost

Signature: [static,const] QCamera_LockChangeReason LockLost

Description: Enum constant QCamera::LockLost

Python specific notes:
The object exposes a readable attribute 'LockLost'. This is the getter.

LockTemporaryLost

Signature: [static,const] QCamera_LockChangeReason LockTemporaryLost

Description: Enum constant QCamera::LockTemporaryLost

Python specific notes:
The object exposes a readable attribute 'LockTemporaryLost'. This is the getter.

LockWhiteBalance

Signature: [static,const] QCamera_LockType LockWhiteBalance

Description: Enum constant QCamera::LockWhiteBalance

Python specific notes:
The object exposes a readable attribute 'LockWhiteBalance'. This is the getter.

Locked

Signature: [static,const] QCamera_LockStatus Locked

Description: Enum constant QCamera::Locked

Python specific notes:
The object exposes a readable attribute 'Locked'. This is the getter.

NoError

Signature: [static,const] QCamera_Error NoError

Description: Enum constant QCamera::NoError

Python specific notes:
The object exposes a readable attribute 'NoError'. This is the getter.

NoLock

Signature: [static,const] QCamera_LockType NoLock

Description: Enum constant QCamera::NoLock

Python specific notes:
The object exposes a readable attribute 'NoLock'. This is the getter.

NotSupportedFeatureError

Signature: [static,const] QCamera_Error NotSupportedFeatureError

Description: Enum constant QCamera::NotSupportedFeatureError

Python specific notes:
The object exposes a readable attribute 'NotSupportedFeatureError'. This is the getter.

Searching

Signature: [static,const] QCamera_LockStatus Searching

Description: Enum constant QCamera::Searching

Python specific notes:
The object exposes a readable attribute 'Searching'. This is the getter.

ServiceMissingError

Signature: [static,const] QCamera_Error ServiceMissingError

Description: Enum constant QCamera::ServiceMissingError

Python specific notes:
The object exposes a readable attribute 'ServiceMissingError'. This is the getter.

StandbyStatus

Signature: [static,const] QCamera_Status StandbyStatus

Description: Enum constant QCamera::StandbyStatus

Python specific notes:
The object exposes a readable attribute 'StandbyStatus'. This is the getter.

StartingStatus

Signature: [static,const] QCamera_Status StartingStatus

Description: Enum constant QCamera::StartingStatus

Python specific notes:
The object exposes a readable attribute 'StartingStatus'. This is the getter.

StoppingStatus

Signature: [static,const] QCamera_Status StoppingStatus

Description: Enum constant QCamera::StoppingStatus

Python specific notes:
The object exposes a readable attribute 'StoppingStatus'. This is the getter.

UnavailableStatus

Signature: [static,const] QCamera_Status UnavailableStatus

Description: Enum constant QCamera::UnavailableStatus

Python specific notes:
The object exposes a readable attribute 'UnavailableStatus'. This is the getter.

UnloadedState

Signature: [static,const] QCamera_State UnloadedState

Description: Enum constant QCamera::UnloadedState

Python specific notes:
The object exposes a readable attribute 'UnloadedState'. This is the getter.

UnloadedStatus

Signature: [static,const] QCamera_Status UnloadedStatus

Description: Enum constant QCamera::UnloadedStatus

Python specific notes:
The object exposes a readable attribute 'UnloadedStatus'. This is the getter.

UnloadingStatus

Signature: [static,const] QCamera_Status UnloadingStatus

Description: Enum constant QCamera::UnloadingStatus

Python specific notes:
The object exposes a readable attribute 'UnloadingStatus'. This is the getter.

Unlocked

Signature: [static,const] QCamera_LockStatus Unlocked

Description: Enum constant QCamera::Unlocked

Python specific notes:
The object exposes a readable attribute 'Unlocked'. This is the getter.

UnspecifiedPosition

Signature: [static,const] QCamera_Position UnspecifiedPosition

Description: Enum constant QCamera::UnspecifiedPosition

Python specific notes:
The object exposes a readable attribute 'UnspecifiedPosition'. This is the getter.

UserRequest

Signature: [static,const] QCamera_LockChangeReason UserRequest

Description: Enum constant QCamera::UserRequest

Python specific notes:
The object exposes a readable attribute 'UserRequest'. This is the getter.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

addPropertyWatch

Signature: void addPropertyWatch (bytes name)

Description: Method void QCamera::addPropertyWatch(const QByteArray &name)

This method is protected and can only be called from inside a derived class.

availability

Signature: [const] QMultimedia_AvailabilityStatus availability

Description: Virtual method QMultimedia::AvailabilityStatus QCamera::availability()

This method can be reimplemented in a derived class.

availabilityChanged_bool

Signature: [signal] void availabilityChanged_bool (bool available)

Description: Signal declaration for QCamera::availabilityChanged(bool available)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'availabilityChanged_bool'. This is the getter.
The object exposes a writable attribute 'availabilityChanged_bool'. This is the setter.

availabilityChanged_status

Signature: [signal] void availabilityChanged_status (const QMultimedia_AvailabilityStatus availability)

Description: Signal declaration for QCamera::availabilityChanged(QMultimedia::AvailabilityStatus availability)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'availabilityChanged_status'. This is the getter.
The object exposes a writable attribute 'availabilityChanged_status'. This is the setter.

availableDevices

Signature: [static] bytes[] availableDevices

Description: Static method QList<QByteArray> QCamera::availableDevices()

This method is static and can be called without an instance.

bind

Signature: bool bind (QObject ptr arg1)

Description: Virtual method bool QCamera::bind(QObject *)

This method can be reimplemented in a derived class.

captureMode

Signature: [const] QCamera_QFlags_CaptureMode captureMode

Description: Method QFlags<QCamera::CaptureMode> QCamera::captureMode()

Python specific notes:
The object exposes a readable attribute 'captureMode'. This is the getter.

captureMode=

Signature: void captureMode= (QCamera_QFlags_CaptureMode mode)

Description: Method void QCamera::setCaptureMode(QFlags<QCamera::CaptureMode> mode)

Python specific notes:
The object exposes a writable attribute 'captureMode'. This is the setter.

captureModeChanged

Signature: [signal] void captureModeChanged (QCamera_QFlags_CaptureMode arg1)

Description: Signal declaration for QCamera::captureModeChanged(QFlags<QCamera::CaptureMode>)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'captureModeChanged'. This is the getter.
The object exposes a writable attribute 'captureModeChanged'. This is the setter.

childEvent

Signature: void childEvent (QChildEvent ptr event)

Description: Virtual method void QCamera::childEvent(QChildEvent *event)

This method can be reimplemented in a derived class.

customEvent

Signature: void customEvent (QEvent ptr event)

Description: Virtual method void QCamera::customEvent(QEvent *event)

This method can be reimplemented in a derived class.

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QCamera::destroyed(QObject *)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'destroyed'. This is the getter.
The object exposes a writable attribute 'destroyed'. This is the setter.

deviceDescription

Signature: [static] string deviceDescription (bytes device)

Description: Static method QString QCamera::deviceDescription(const QByteArray &device)

This method is static and can be called without an instance.

disconnectNotify

Signature: void disconnectNotify (const QMetaMethod signal)

Description: Virtual method void QCamera::disconnectNotify(const QMetaMethod &signal)

This method can be reimplemented in a derived class.

emit_availabilityChanged_bool

Signature: void emit_availabilityChanged_bool (bool available)

Description: Emitter for signal void QCamera::availabilityChanged(bool available)

Call this method to emit this signal.

emit_availabilityChanged_status

Signature: void emit_availabilityChanged_status (const QMultimedia_AvailabilityStatus availability)

Description: Emitter for signal void QCamera::availabilityChanged(QMultimedia::AvailabilityStatus availability)

Call this method to emit this signal.

emit_captureModeChanged

Signature: void emit_captureModeChanged (QCamera_QFlags_CaptureMode arg1)

Description: Emitter for signal void QCamera::captureModeChanged(QFlags<QCamera::CaptureMode>)

Call this method to emit this signal.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = nullptr)

Description: Emitter for signal void QCamera::destroyed(QObject *)

Call this method to emit this signal.

emit_error_sig

Signature: void emit_error_sig (const QCamera_Error arg1)

Description: Emitter for signal void QCamera::error(QCamera::Error)

Call this method to emit this signal.

emit_lockFailed

Signature: void emit_lockFailed

Description: Emitter for signal void QCamera::lockFailed()

Call this method to emit this signal.

emit_lockStatusChanged

Signature: void emit_lockStatusChanged (const QCamera_LockStatus status, const QCamera_LockChangeReason reason)

Description: Emitter for signal void QCamera::lockStatusChanged(QCamera::LockStatus status, QCamera::LockChangeReason reason)

Call this method to emit this signal.

emit_lockStatusChanged_withType

Signature: void emit_lockStatusChanged_withType (const QCamera_LockType lock, const QCamera_LockStatus status, const QCamera_LockChangeReason reason)

Description: Emitter for signal void QCamera::lockStatusChanged(QCamera::LockType lock, QCamera::LockStatus status, QCamera::LockChangeReason reason)

Call this method to emit this signal.

emit_locked

Signature: void emit_locked

Description: Emitter for signal void QCamera::locked()

Call this method to emit this signal.

emit_metaDataAvailableChanged

Signature: void emit_metaDataAvailableChanged (bool available)

Description: Emitter for signal void QCamera::metaDataAvailableChanged(bool available)

Call this method to emit this signal.

emit_metaDataChanged

Signature: void emit_metaDataChanged

Description: Emitter for signal void QCamera::metaDataChanged()

Call this method to emit this signal.

emit_metaDataChanged_kv

Signature: void emit_metaDataChanged_kv (string key, variant value)

Description: Emitter for signal void QCamera::metaDataChanged(const QString &key, const QVariant &value)

Call this method to emit this signal.

emit_notifyIntervalChanged

Signature: void emit_notifyIntervalChanged (int milliSeconds)

Description: Emitter for signal void QCamera::notifyIntervalChanged(int milliSeconds)

Call this method to emit this signal.

emit_objectNameChanged

Signature: void emit_objectNameChanged (string objectName)

Description: Emitter for signal void QCamera::objectNameChanged(const QString &objectName)

Call this method to emit this signal.

emit_stateChanged

Signature: void emit_stateChanged (const QCamera_State state)

Description: Emitter for signal void QCamera::stateChanged(QCamera::State state)

Call this method to emit this signal.

emit_statusChanged

Signature: void emit_statusChanged (const QCamera_Status status)

Description: Emitter for signal void QCamera::statusChanged(QCamera::Status status)

Call this method to emit this signal.

error

Signature: [const] QCamera_Error error

Description: Method QCamera::Error QCamera::error()

errorString

Signature: [const] string errorString

Description: Method QString QCamera::errorString()

error_sig

Signature: [signal] void error_sig (const QCamera_Error arg1)

Description: Signal declaration for QCamera::error(QCamera::Error)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'error_sig'. This is the getter.
The object exposes a writable attribute 'error_sig'. This is the setter.

event

Signature: bool event (QEvent ptr event)

Description: Virtual method bool QCamera::event(QEvent *event)

This method can be reimplemented in a derived class.

eventFilter

Signature: bool eventFilter (QObject ptr watched, QEvent ptr event)

Description: Virtual method bool QCamera::eventFilter(QObject *watched, QEvent *event)

This method can be reimplemented in a derived class.

exposure

Signature: [const] QCameraExposure ptr exposure

Description: Method QCameraExposure *QCamera::exposure()

focus

Signature: [const] QCameraFocus ptr focus

Description: Method QCameraFocus *QCamera::focus()

imageProcessing

Signature: [const] QCameraImageProcessing ptr imageProcessing

Description: Method QCameraImageProcessing *QCamera::imageProcessing()

isAvailable

Signature: [const] bool isAvailable

Description: Virtual method bool QCamera::isAvailable()

This method can be reimplemented in a derived class.

isCaptureModeSupported?

Signature: [const] bool isCaptureModeSupported? (QCamera_QFlags_CaptureMode mode)

Description: Method bool QCamera::isCaptureModeSupported(QFlags<QCamera::CaptureMode> mode)

isSignalConnected

Signature: [const] bool isSignalConnected (const QMetaMethod signal)

Description: Method bool QCamera::isSignalConnected(const QMetaMethod &signal)

This method is protected and can only be called from inside a derived class.

load

Signature: void load

Description: Method void QCamera::load()

lockFailed

Signature: [signal] void lockFailed

Description: Signal declaration for QCamera::lockFailed()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'lockFailed'. This is the getter.
The object exposes a writable attribute 'lockFailed'. This is the setter.

lockStatus

(1) Signature: [const] QCamera_LockStatus lockStatus

Description: Method QCamera::LockStatus QCamera::lockStatus()

Python specific notes:
The object exposes a readable attribute 'lockStatus'. This is the getter.

(2) Signature: [const] QCamera_LockStatus lockStatus (const QCamera_LockType lock)

Description: Method QCamera::LockStatus QCamera::lockStatus(QCamera::LockType lock)

Python specific notes:
This method is available as 'lockStatus_' in Python to distiguish it from the property with the same name.

lockStatusChanged

Signature: [signal] void lockStatusChanged (const QCamera_LockStatus status, const QCamera_LockChangeReason reason)

Description: Signal declaration for QCamera::lockStatusChanged(QCamera::LockStatus status, QCamera::LockChangeReason reason)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'lockStatusChanged'. This is the getter.
The object exposes a writable attribute 'lockStatusChanged'. This is the setter.

lockStatusChanged_withType

Signature: [signal] void lockStatusChanged_withType (const QCamera_LockType lock, const QCamera_LockStatus status, const QCamera_LockChangeReason reason)

Description: Signal declaration for QCamera::lockStatusChanged(QCamera::LockType lock, QCamera::LockStatus status, QCamera::LockChangeReason reason)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'lockStatusChanged_withType'. This is the getter.
The object exposes a writable attribute 'lockStatusChanged_withType'. This is the setter.

locked

Signature: [signal] void locked

Description: Signal declaration for QCamera::locked()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'locked'. This is the getter.
The object exposes a writable attribute 'locked'. This is the setter.

metaDataAvailableChanged

Signature: [signal] void metaDataAvailableChanged (bool available)

Description: Signal declaration for QCamera::metaDataAvailableChanged(bool available)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'metaDataAvailableChanged'. This is the getter.
The object exposes a writable attribute 'metaDataAvailableChanged'. This is the setter.

metaDataChanged

Signature: [signal] void metaDataChanged

Description: Signal declaration for QCamera::metaDataChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'metaDataChanged'. This is the getter.
The object exposes a writable attribute 'metaDataChanged'. This is the setter.

metaDataChanged_kv

Signature: [signal] void metaDataChanged_kv (string key, variant value)

Description: Signal declaration for QCamera::metaDataChanged(const QString &key, const QVariant &value)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'metaDataChanged_kv'. This is the getter.
The object exposes a writable attribute 'metaDataChanged_kv'. This is the setter.

new

(1) Signature: [static] new QCamera new (QObject ptr parent = nullptr)

Description: Constructor QCamera::QCamera(QObject *parent)

This method creates an object of class QCamera.

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QCamera new (bytes deviceName, QObject ptr parent = nullptr)

Description: Constructor QCamera::QCamera(const QByteArray &deviceName, QObject *parent)

This method creates an object of class QCamera.

Python specific notes:
This method is the default initializer of the object.

(3) Signature: [static] new QCamera new (const QCameraInfo cameraInfo, QObject ptr parent = nullptr)

Description: Constructor QCamera::QCamera(const QCameraInfo &cameraInfo, QObject *parent)

This method creates an object of class QCamera.

Python specific notes:
This method is the default initializer of the object.

(4) Signature: [static] new QCamera new (const QCamera_Position position, QObject ptr parent = nullptr)

Description: Constructor QCamera::QCamera(QCamera::Position position, QObject *parent)

This method creates an object of class QCamera.

Python specific notes:
This method is the default initializer of the object.

notifyIntervalChanged

Signature: [signal] void notifyIntervalChanged (int milliSeconds)

Description: Signal declaration for QCamera::notifyIntervalChanged(int milliSeconds)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'notifyIntervalChanged'. This is the getter.
The object exposes a writable attribute 'notifyIntervalChanged'. This is the setter.

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QCamera::objectNameChanged(const QString &objectName)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'objectNameChanged'. This is the getter.
The object exposes a writable attribute 'objectNameChanged'. This is the setter.

receivers

Signature: [const] int receivers (string signal)

Description: Method int QCamera::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

removePropertyWatch

Signature: void removePropertyWatch (bytes name)

Description: Method void QCamera::removePropertyWatch(const QByteArray &name)

This method is protected and can only be called from inside a derived class.

requestedLocks

Signature: [const] QCamera_QFlags_LockType requestedLocks

Description: Method QFlags<QCamera::LockType> QCamera::requestedLocks()

searchAndLock

(1) Signature: void searchAndLock

Description: Method void QCamera::searchAndLock()

(2) Signature: void searchAndLock (QCamera_QFlags_LockType locks)

Description: Method void QCamera::searchAndLock(QFlags<QCamera::LockType> locks)

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QCamera::sender()

This method is protected and can only be called from inside a derived class.

senderSignalIndex

Signature: [const] int senderSignalIndex

Description: Method int QCamera::senderSignalIndex()

This method is protected and can only be called from inside a derived class.

service

Signature: [const] QMediaService ptr service

Description: Virtual method QMediaService *QCamera::service()

This method can be reimplemented in a derived class.

setCaptureMode

Signature: void setCaptureMode (QCamera_QFlags_CaptureMode mode)

Description: Method void QCamera::setCaptureMode(QFlags<QCamera::CaptureMode> mode)

Python specific notes:
The object exposes a writable attribute 'captureMode'. This is the setter.

setViewfinder

(1) Signature: void setViewfinder (QVideoWidget ptr viewfinder)

Description: Method void QCamera::setViewfinder(QVideoWidget *viewfinder)

(2) Signature: void setViewfinder (QGraphicsVideoItem ptr viewfinder)

Description: Method void QCamera::setViewfinder(QGraphicsVideoItem *viewfinder)

(3) Signature: void setViewfinder (QAbstractVideoSurface ptr surface)

Description: Method void QCamera::setViewfinder(QAbstractVideoSurface *surface)

setViewfinderSettings

Signature: void setViewfinderSettings (const QCameraViewfinderSettings settings)

Description: Method void QCamera::setViewfinderSettings(const QCameraViewfinderSettings &settings)

Python specific notes:
The object exposes a writable attribute 'viewfinderSettings'. This is the setter.

start

Signature: void start

Description: Method void QCamera::start()

state

Signature: [const] QCamera_State state

Description: Method QCamera::State QCamera::state()

Python specific notes:
The object exposes a readable attribute 'state'. This is the getter.

stateChanged

Signature: [signal] void stateChanged (const QCamera_State state)

Description: Signal declaration for QCamera::stateChanged(QCamera::State state)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'stateChanged'. This is the getter.
The object exposes a writable attribute 'stateChanged'. This is the setter.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

status

Signature: [const] QCamera_Status status

Description: Method QCamera::Status QCamera::status()

Python specific notes:
The object exposes a readable attribute 'status'. This is the getter.

statusChanged

Signature: [signal] void statusChanged (const QCamera_Status status)

Description: Signal declaration for QCamera::statusChanged(QCamera::Status status)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'statusChanged'. This is the getter.
The object exposes a writable attribute 'statusChanged'. This is the setter.

stop

Signature: void stop

Description: Method void QCamera::stop()

supportedLocks

Signature: [const] QCamera_QFlags_LockType supportedLocks

Description: Method QFlags<QCamera::LockType> QCamera::supportedLocks()

supportedViewfinderFrameRateRanges

Signature: [const] QCamera_FrameRateRange[] supportedViewfinderFrameRateRanges (const QCameraViewfinderSettings settings = QCameraViewfinderSettings())

Description: Method QList<QCamera::FrameRateRange> QCamera::supportedViewfinderFrameRateRanges(const QCameraViewfinderSettings &settings)

supportedViewfinderPixelFormats

Signature: [const] QVideoFrame_PixelFormat[] supportedViewfinderPixelFormats (const QCameraViewfinderSettings settings = QCameraViewfinderSettings())

Description: Method QList<QVideoFrame::PixelFormat> QCamera::supportedViewfinderPixelFormats(const QCameraViewfinderSettings &settings)

supportedViewfinderResolutions

Signature: [const] QSize[] supportedViewfinderResolutions (const QCameraViewfinderSettings settings = QCameraViewfinderSettings())

Description: Method QList<QSize> QCamera::supportedViewfinderResolutions(const QCameraViewfinderSettings &settings)

supportedViewfinderSettings

Signature: [const] QCameraViewfinderSettings[] supportedViewfinderSettings (const QCameraViewfinderSettings settings = QCameraViewfinderSettings())

Description: Method QList<QCameraViewfinderSettings> QCamera::supportedViewfinderSettings(const QCameraViewfinderSettings &settings)

timerEvent

Signature: void timerEvent (QTimerEvent ptr event)

Description: Virtual method void QCamera::timerEvent(QTimerEvent *event)

This method can be reimplemented in a derived class.

tr

Signature: [static] string tr (string s, string c = nullptr, int n = -1)

Description: Static method QString QCamera::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

trUtf8

Signature: [static] string trUtf8 (string s, string c = nullptr, int n = -1)

Description: Static method QString QCamera::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

unbind

Signature: void unbind (QObject ptr arg1)

Description: Virtual method void QCamera::unbind(QObject *)

This method can be reimplemented in a derived class.

unload

Signature: void unload

Description: Method void QCamera::unload()

unlock

(1) Signature: void unlock

Description: Method void QCamera::unlock()

(2) Signature: void unlock (QCamera_QFlags_LockType locks)

Description: Method void QCamera::unlock(QFlags<QCamera::LockType> locks)

viewfinderSettings

Signature: [const] QCameraViewfinderSettings viewfinderSettings

Description: Method QCameraViewfinderSettings QCamera::viewfinderSettings()

Python specific notes:
The object exposes a readable attribute 'viewfinderSettings'. This is the getter.

viewfinderSettings=

Signature: void viewfinderSettings= (const QCameraViewfinderSettings settings)

Description: Method void QCamera::setViewfinderSettings(const QCameraViewfinderSettings &settings)

Python specific notes:
The object exposes a writable attribute 'viewfinderSettings'. This is the setter.