Phonon
VideoWidget Class Reference
[Video, Widgets]
#include <Phonon/VideoWidget>

Detailed Description
Widget to display video.This widget shows the video signal.
MediaObject *media = new MediaObject(parent); VideoWidget *vwidget = new VideoWidget(parent); Phonon::createPath(media, vwidget);
Public Types | |
| enum | AspectRatio { AspectRatioAuto = 0, AspectRatioWidget = 1, AspectRatio4_3 = 2, AspectRatio16_9 = 3 } |
Public Slots | |
| void | exitFullScreen () |
| void | enterFullScreen () |
Public Member Functions | |
| VideoWidget (QWidget *parent=0) | |
Properties | |
| bool | fullScreen |
| AspectRatio | aspectRatio |
| ScaleMode | scaleMode |
| qreal | brightness |
| qreal | contrast |
| qreal | hue |
| qreal | saturation |
Member Enumeration Documentation
| enum AspectRatio |
Defines the width:height to be used for the video.
- Enumerator:
Constructor & Destructor Documentation
| VideoWidget | ( | QWidget * | parent = 0 |
) |
Constructs a new video widget with a parent.
Member Function Documentation
| void exitFullScreen | ( | ) | [slot] |
Convenience slot, calling setFullScreen(false).
| void enterFullScreen | ( | ) | [slot] |
Convenience slot, calling setFullScreen(true).
Property Documentation
bool fullScreen [read, write] |
This property holds whether the video is shown using the complete screen.
The property differs from QWidget::fullScreen in that it is writeable.
By default the widget is not shown in fullScreen.
- Warning:
- When switching the video to fullscreen using setFullScreen your application loses control over the widget that actually shows the video (which is then shown as a toplevel window while your application still uses this widget). If you only need to capture key events the event forwarding done internally should suffice for your needs. If you need to map mouse coordinates or add widgets (that are not overlays) you should probably handle fullscreen yourself.
AspectRatio aspectRatio [read, write] |
ScaleMode scaleMode [read, write] |
If the size of the widget and the size of the video are not equal.
The video will be zoomed to fit the widget. The smaller zoom (AddBarsScaleMode) adds black bars at the left/right or top/bottom to make all of the image visible (default). The bigger zoom (ExpandMode) fills the widget completely, keeping all information in one direction and leaving parts of the image outside of the widget in the other direction.
qreal brightness [read, write] |
This property holds brightness of the video.
Default is 0. Acceptable values are in range of -1, 1.
qreal contrast [read, write] |
This property holds the contrast of the video.
Default is 0. Acceptable values are in range of -1, 1.
qreal hue [read, write] |
This property holds the hue of the video.
Default is 0. Acceptable values are in range of -1, 1.
qreal saturation [read, write] |
This property holds saturation of the video.
Default is 0. Acceptable values are in range of -1, 1.
The documentation for this class was generated from the following file:
- videowidget.h
KDE 4.0 API Reference