CopperSpice API  1.9.1
QVideoWidgetControl Class Referenceabstract

The QVideoWidgetControl class provides a media control which implements a video widget. More...

Inheritance diagram for QVideoWidgetControl:
QMediaControl QObject

Public Signals

void brightnessChanged (int brightness)
 
void contrastChanged (int contrast)
 
void fullScreenChanged (bool fullScreen)
 
void hueChanged (int hue)
 
void saturationChanged (int saturation)
 
- Public Signals inherited from QObject
void destroyed (QObject *obj=nullptr)
 
void objectNameChanged (const QString &objectName)
 

Public Methods

virtual ~QVideoWidgetControl ()
 
virtual Qt::AspectRatioMode aspectRatioMode () const = 0
 
virtual int brightness () const = 0
 
virtual int contrast () const = 0
 
virtual int hue () const = 0
 
virtual bool isFullScreen () const = 0
 
virtual int saturation () const = 0
 
virtual void setAspectRatioMode (Qt::AspectRatioMode mode) = 0
 
virtual void setBrightness (int brightness) = 0
 
virtual void setContrast (int contrast) = 0
 
virtual void setFullScreen (bool fullScreen) = 0
 
virtual void setHue (int hue) = 0
 
virtual void setSaturation (int saturation) = 0
 
virtual QWidgetvideoWidget () = 0
 
- Public Methods inherited from QMediaControl
 ~QMediaControl ()
 
- Public Methods inherited from QObject
 QObject (QObject *parent=nullptr)
 
 ~QObject ()
 
bool blockSignals (bool block)
 
const QList< QObject * > & children () const
 
bool connect (const QObject *sender, const QString &signalMethod, const QString &location, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
bool connect (const QObject *sender, const QString &signalMethod, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
bool disconnect (const QObject *receiver, const QString &slotMethod=QString ()) const
 
bool disconnect (const QString &signalMethod, const QString &location, const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const
 
bool disconnect (const QString &signalMethod=QString (), const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QStringdynamicPropertyNames () const
 
virtual bool event (QEvent *event)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
template<typename T >
findChild (const QString &childName=QString ()) const
 
template<class T >
QList< T > findChildren (const QRegularExpression &regExp, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<class T >
QList< T > findChildren (const QString &childName=QString (), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
bool inherits (const QString &className) const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const
 
bool isWindowType () const
 
void killTimer (int id)
 
const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const
 
QObject * parent () const
 
template<class T = QVariant>
property (const QString &name) const
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const QString &name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 
QThreadthread () const
 

Protected Methods

 QVideoWidgetControl (QObject *parent=nullptr)
 
- Protected Methods inherited from QMediaControl
 QMediaControl (QObject *parent=nullptr)
 
- Protected Methods inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signalMethod) const
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signalMethod) const
 
bool isSignalConnected (const QMetaMethod &signalMethod) const
 
int receivers (const QString &signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 
- Static Public Methods inherited from QObject
static bool connect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection, const QString &location=QString ())
 
static bool connect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn >
static bool connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...), Qt::ConnectionType type=Qt::AutoConnection)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T >
static bool connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotLambda, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod)
 
static bool disconnect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod)
 
static bool disconnect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod)
 
static bool disconnect (const QObject *sender, std::nullptr_t, const QObject *receiver, std::nullptr_t)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...))
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, std::nullptr_t slotMethod=nullptr)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotMethod)
 
static QMetaObjectstaticMetaObject ()
 
static QString tr (const char *text, const char *comment=nullptr, std::optional< int > numArg=std::optional< int >())
 
- Properties inherited from QObject
 objectName
 

Detailed Description

The videoWidget() property of QVideoWidgetControl provides a pointer to a video widget implemented by the control's media service. This widget is owned by the media service and so care should be taken not to delete it.

QVideoWidgetControl is one of number of possible video output controls.

QVideoWidgetControl *widgetControl = mediaService->requestControl<QVideoWidgetControl *>();
layout->addWidget(widgetControl->videoWidget());

The interface name of QVideoWidgetControl is "com.copperspice.CS.videoWidgetControl/1.0" as defined in QVideoWidgetControl_iid.

See also
QMediaService::requestControl(), QVideoWidget

Constructor & Destructor Documentation

QVideoWidgetControl::~QVideoWidgetControl ( )
virtual

Destroys a video widget control.

QVideoWidgetControl::QVideoWidgetControl ( QObject parent = nullptr)
explicitprotected

Constructs a new video widget control with the given parent.

Method Documentation

Qt::AspectRatioMode QVideoWidgetControl::aspectRatioMode ( ) const
pure virtual

Returns how video is scaled to fit the widget with respect to its aspect ratio.

int QVideoWidgetControl::brightness ( ) const
pure virtual

Returns the brightness adjustment applied to a video. Valid brightness values range between -100 and 100, the default is 0.

void QVideoWidgetControl::brightnessChanged ( int  brightness)
signal

Signals that a video widget's brightness adjustment has changed.

int QVideoWidgetControl::contrast ( ) const
pure virtual

Returns the contrast adjustment applied to a video. Valid contrast values range between -100 and 100, the default is 0.

void QVideoWidgetControl::contrastChanged ( int  contrast)
signal

Signals a video widget's contrast adjustment has changed.

void QVideoWidgetControl::fullScreenChanged ( bool  fullScreen)
signal

Signals that the fullScreen state of a video widget has changed.

int QVideoWidgetControl::hue ( ) const
pure virtual

Returns the hue adjustment applied to a video widget. Value hue values range between -100 and 100, the default is 0.

void QVideoWidgetControl::hueChanged ( int  hue)
signal

Signals a video widget's hue adjustment has changed.

bool QVideoWidgetControl::isFullScreen ( ) const
pure virtual

Returns true if the video is shown using the complete screen.

int QVideoWidgetControl::saturation ( ) const
pure virtual

Returns the saturation adjustment applied to a video widget. Value saturation values range between -100 and 100, the default is 0.

void QVideoWidgetControl::saturationChanged ( int  saturation)
signal

Signals a video widget's saturation adjustment has changed.

void QVideoWidgetControl::setAspectRatioMode ( Qt::AspectRatioMode  mode)
pure virtual

Sets the aspect ratio mode which determines how video is scaled to the fit the widget with respect to its aspect ratio.

void QVideoWidgetControl::setBrightness ( int  brightness)
pure virtual

Sets a brightness adjustment for a video. Valid brightness values range between -100 and 100, the default is 0.

void QVideoWidgetControl::setContrast ( int  contrast)
pure virtual

Sets the contrast adjustment for a video widget to contrast. Valid contrast values range between -100 and 100, the default is 0.

void QVideoWidgetControl::setFullScreen ( bool  fullScreen)
pure virtual

Sets whether a video widget is in fullScreen mode.

void QVideoWidgetControl::setHue ( int  hue)
pure virtual

Sets a hue adjustment for a video widget. Valid hue values range between -100 and 100, the default is 0.

void QVideoWidgetControl::setSaturation ( int  saturation)
pure virtual

Sets a saturation adjustment for a video widget. Valid saturation values range between -100 and 100, the default is 0.

QWidget * QVideoWidgetControl::videoWidget ( )
pure virtual

Returns the QWidget.