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  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QVideoWindowControl Class Reference

The QVideoWindowControl class provides a media control for rendering video to a window. More...

 #include <QVideoWindowControl>

Inherits QMediaControl.

Public Functions

~QVideoWindowControl ()
virtual Qt::AspectRatioMode aspectRatioMode () const = 0
virtual int brightness () const = 0
virtual int contrast () const = 0
virtual QRect displayRect () const = 0
virtual int hue () const = 0
virtual bool isFullScreen () const = 0
virtual QSize nativeSize () const = 0
virtual void repaint () = 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 setDisplayRect ( const QRect & rect ) = 0
virtual void setFullScreen ( bool fullScreen ) = 0
virtual void setHue ( int hue ) = 0
virtual void setSaturation ( int saturation ) = 0
virtual void setWinId ( WId id ) = 0
virtual WId winId () const = 0
  • 29 public functions inherited from QObject

Signals

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

Protected Functions

QVideoWindowControl ( QObject * parent = 0 )
  • 7 protected functions inherited from QObject

Macros

QVideoWindowControl_iid

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QVideoWindowControl class provides a media control for rendering video to a window.

The winId() property QVideoWindowControl allows a platform specific window ID to be set as the video render target of a QMediaService. The displayRect() property is used to set the region of the window the video should be rendered to, and the aspectRatioMode() property indicates how the video should be scaled to fit the displayRect().

     QVideoWindowControl *windowControl = mediaService->requestControl<QVideoWindowControl *>();
     windowControl->setWinId(widget->winId());
     windowControl->setDisplayRect(widget->rect());
     windowControl->setAspectRatioMode(Qt::KeepAspectRatio);

QVideoWindowControl is one of a number of possible video output controls.

The interface name of QVideoWindowControl is com.nokia.Qt.QVideoWindowControl/1.0 as defined in QVideoWindowControl_iid.

See also QMediaService::requestControl() and QVideoWidget.

Member Function Documentation

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

Constructs a new video window control with the given parent.

QVideoWindowControl::~QVideoWindowControl ()

Destroys a video window control.

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

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

See also setAspectRatioMode().

int QVideoWindowControl::brightness () const [pure virtual]

Returns the brightness adjustment applied to a video overlay.

Valid brightness values range between -100 and 100, the default is 0.

See also setBrightness().

void QVideoWindowControl::brightnessChanged ( int brightness ) [signal]

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

int QVideoWindowControl::contrast () const [pure virtual]

Returns the contrast adjustment applied to a video overlay.

Valid contrast values range between -100 and 100, the default is 0.

See also setContrast().

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

Signals that a video overlay's contrast adjustment has changed.

QRect QVideoWindowControl::displayRect () const [pure virtual]

Returns the sub-rect of a window where video is displayed.

See also setDisplayRect().

void QVideoWindowControl::fullScreenChanged ( bool fullScreen ) [signal]

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

int QVideoWindowControl::hue () const [pure virtual]

Returns the hue adjustment applied to a video overlay.

Value hue values range between -100 and 100, the default is 0.

See also setHue().

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

Signals that a video overlay's hue adjustment has changed.

bool QVideoWindowControl::isFullScreen () const [pure virtual]

Identifies if a video overlay is a fullScreen overlay.

Returns true if the video overlay is fullScreen, and false otherwise.

QSize QVideoWindowControl::nativeSize () const [pure virtual]

Returns a suggested size for the video display based on the resolution and aspect ratio of the video.

void QVideoWindowControl::nativeSizeChanged () [signal]

Signals that the native dimensions of the video have changed.

void QVideoWindowControl::repaint () [pure virtual]

Repaints the last frame.

int QVideoWindowControl::saturation () const [pure virtual]

Returns the saturation adjustment applied to a video overlay.

Value saturation values range between -100 and 100, the default is 0.

See also setSaturation().

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

Signals that a video overlay's saturation adjustment has changed.

void QVideoWindowControl::setAspectRatioMode ( Qt::AspectRatioMode mode ) [pure virtual]

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

See also aspectRatioMode().

void QVideoWindowControl::setBrightness ( int brightness ) [pure virtual]

Sets a brightness adjustment for a video overlay.

Valid brightness values range between -100 and 100, the default is 0.

See also brightness().

void QVideoWindowControl::setContrast ( int contrast ) [pure virtual]

Sets the contrast adjustment for a video overlay.

Valid contrast values range between -100 and 100, the default is 0.

See also contrast().

void QVideoWindowControl::setDisplayRect ( const QRect & rect ) [pure virtual]

Sets the sub-rect of a window where video is displayed.

See also displayRect().

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

Sets whether a video overlay is a fullScreen overlay.

See also isFullScreen().

void QVideoWindowControl::setHue ( int hue ) [pure virtual]

Sets a hue adjustment for a video overlay.

Valid hue values range between -100 and 100, the default is 0.

See also hue().

void QVideoWindowControl::setSaturation ( int saturation ) [pure virtual]

Sets a saturation adjustment for a video overlay.

Valid saturation values range between -100 and 100, the default is 0.

See also saturation().

void QVideoWindowControl::setWinId ( WId id ) [pure virtual]

Sets the id of the window a video overlay end point renders to.

See also winId().

WId QVideoWindowControl::winId () const [pure virtual]

Returns the ID of the window a video overlay end point renders to.

See also setWinId().

Macro Documentation

QVideoWindowControl_iid

com.nokia.Qt.QVideoWindowControl/1.0

Defines the interface name of the QVideoWindowControl class.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();
Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 64
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. BlackBerry 10 : premières images du prochain OS de RIM qui devrait intégrer des widgets et des tuiles inspirées de Windows Phone 0
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
  7. La rubrique Qt a besoin de vous ! 1
Page suivante

Le blog Digia au hasard

Logo

Créer des applications avec un style Metro avec Qt, exemples en QML et C++, un article de Digia Qt traduit par Thibaut Cuvelier

Le blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

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 qtmobility-1.1
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