Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QVideoWidgetControl Class

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

 #include <QVideoWidgetControl>

Inherits: QMediaControl.

Public Functions

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 QWidget * videoWidget() = 0
  • 31 public functions inherited from QObject

Signals

void brightnessChanged(int brightness)
void contrastChanged(int contrast)
void fullScreenChanged(bool fullScreen)
void hueChanged(int hue)
void saturationChanged(int saturation)

Protected Functions

QVideoWidgetControl(QObject * parent = 0)
  • 9 protected functions inherited from QObject

Macros

QVideoWidgetControl_iid

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 11 static public members inherited from QObject

Detailed Description

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

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 *widgetControl = mediaService->requestControl<QVideoWidgetControl *>();
 layout->addWidget(widgetControl->videoWidget());

QVideoWidgetControl is one of number of possible video output controls.

The interface name of QVideoWidgetControl is org.qt-project.qt.videowidgetcontrol/5.0 as defined in QVideoWidgetControl_iid.

See also QMediaService::requestControl() and QVideoWidget.

Member Function Documentation

QVideoWidgetControl::QVideoWidgetControl(QObject * parent = 0) [protected]

Constructs a new video widget control with the given parent.

QVideoWidgetControl::~QVideoWidgetControl() [virtual]

Destroys a video widget control.

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

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

See also setAspectRatioMode().

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.

See also setBrightness().

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.

See also setContrast().

void QVideoWidgetControl::contrastChanged(int contrast) [signal]

Signals that 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.

See also setHue().

void QVideoWidgetControl::hueChanged(int hue) [signal]

Signals that 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.

See also setSaturation().

void QVideoWidgetControl::saturationChanged(int saturation) [signal]

Signals that 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.

See also aspectRatioMode().

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.

See also brightness().

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.

See also contrast().

void QVideoWidgetControl::setFullScreen(bool fullScreen) [pure virtual]

Sets whether a video widget is in fullScreen mode.

See also isFullScreen().

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.

See also hue().

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.

See also saturation().

QWidget * QVideoWidgetControl::videoWidget() [pure virtual]

Returns the QWidget.

Macro Documentation

QVideoWidgetControl_iid

org.qt-project.qt.videowidgetcontrol/5.0

Defines the interface name of the QVideoWidgetControl class.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web