# class VideoWidget

###

Module | phonon
Namespace | Phonon
Class | VideoWidget
Inherits | QWidget

\class VideoWidget videowidget.h Phonon/VideoWidget Widget to display video.

This widget shows the video signal.

    MediaObject *media = new MediaObject(parent);
    VideoWidget *vwidget = new VideoWidget(parent);
    Phonon.createPath(media, vwidget);

Author Matthias Kretz <kretz@kde.org>

### enums

- AspectRatio { AspectRatioAuto, AspectRatioWidget, AspectRatio4_3, AspectRatio16_9 }
- ScaleMode { FitInView, ScaleAndCrop }

enum details

### methods

- VideoWidget (parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

  Constructs a new video widget with a parent.

- VideoWidget (d, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  d | VideoWidgetPrivate |
  parent | QWidget |

  Internal

  Constructs a new video widget with private data pointer d and a parent.

- aspectRatio ( )

  returns Phonon::VideoWidget.AspectRatio

- brightness ( )

  returns qreal

- contrast ( )

  returns qreal

- enterFullScreen ( )

  returns Nothing

  Convenience slot, calling setFullScreen(true)

- event (a0)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  a0 | QEvent |

- exitFullScreen ( )

  returns Nothing

  Convenience slot, calling setFullScreen(false)

- hue ( )

  returns qreal

- mouseMoveEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QMouseEvent |

- saturation ( )

  returns qreal

- scaleMode ( )

  returns Phonon::VideoWidget.ScaleMode

- setAspectRatio (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | Phonon::VideoWidget.AspectRatio |

- setBrightness (value)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  value | qreal |

- setContrast (value)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  value | qreal |

- setFullScreen (fullscreen)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  fullscreen | bool |

- setHue (value)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  value | qreal |

- setSaturation (value)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  value | qreal |

- setScaleMode (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | Phonon::VideoWidget.ScaleMode |

### enums - detail

- AspectRatio { AspectRatioAuto, AspectRatioWidget, AspectRatio4_3, AspectRatio16_9 }

  Let the decoder find the aspect ratio automatically from the media file (this is the default).

  | AspectRatioAuto | - 0 | - |
  | AspectRatioWidget | - 1 | - |
  | AspectRatio4_3 | - 2 | - |
  | AspectRatio16_9 | - 3 | - |

- ScaleMode { FitInView, ScaleAndCrop }

  Make width/height == 16/9, which is the size of most current media. (16:9)

  | FitInView | - 0 | - |
  | ScaleAndCrop | - 1 | - |