VideoWidget Class Reference(Phonon::VideoWidget)The VideoWidget class provides a widget that is used to display video. Далее... #include <Phonon/VideoWidget> Inherits: QWidget and MediaNode. Этот класс был введён в Qt 4.4. Открытые типы
Свойства
Открытые функции
Открытые слоты
Переопределённые защищённые функции
Дополнительные унаследованные члены
Подробное описаниеThe VideoWidget class provides a widget that is used to display video. The VideoWidget class renders the video of a media stream on a QWidget. It is connected to the MediaObject, of which video stream it should render. You connect the two objects using the Phonon::createPath() function. The widget has some possibilities to manipulate the video stream. You can change the brightness(), hue(), saturation(), and contrast(). Resizing of the video is handled automatically, but you can affect the way the video is resized with the aspectRatio and scaleMode properties. By default, the widget will use the aspect ratio of the video stream itself. The video widget takes the size of the video when it receives a new video stream (i.e., when a new MediaSource is set on the MediaObject to which it is connected). If you need to know the size of the video, you can call sizeHint() after the video has been loaded (i.e., after the MediaObject leaves the LoadingState). It is also possible to go to full screen mode. A typical example of usage follows below: MediaObject *media = new MediaObject(parent); VideoWidget *vwidget = new VideoWidget(parent); Phonon::createPath(media, vwidget); See also Phonon Module. Описание типов-членовenum VideoWidget::AspectRatioDefines the width:height to be used for the video.
enum VideoWidget::ScaleModeThe ScaleMode enum describes how to treat aspect ratio during resizing of video.
Описание свойствaspectRatio : AspectRatioDefaults to AspectRatioAuto. Функции доступа:
See also AspectRatio. brightness : qrealThis property holds brightness of the video. Default is 0. Acceptable values are in range of -1, 1. Функции доступа:
contrast : qrealThis property holds the contrast of the video. Default is 0. Acceptable values are in range of -1, 1. Функции доступа:
fullScreen : boolThis 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 to full screen mode using setFullScreen(), the widget onto which the video is rendered is shown as a top-level window. Key event forwarding is handled by VideoWidget, but if you need to handle other events, e.g., mouse events, you should handle fullscreen mode yourself. Функции доступа:
hue : qrealThis property holds the hue of the video. Default is 0. Acceptable values are in range of -1, 1. Функции доступа:
saturation : qrealThis property holds saturation of the video. Default is 0. Acceptable values are in range of -1, 1. Функции доступа:
scaleMode : ScaleModeIf 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. Функции доступа:
Описание функций-членовVideoWidget::VideoWidget ( QWidget * parent = 0 )Constructs a new video widget with the specified parent. void VideoWidget::enterFullScreen () [slot]Convenience slot, calling setFullScreen(true) bool VideoWidget::event ( QEvent * ) [virtual protected]Переопределено от QObject::event(). void VideoWidget::exitFullScreen () [slot]Convenience slot, calling setFullScreen(false) void VideoWidget::mouseMoveEvent ( QMouseEvent * ) [virtual protected]Переопределено из QWidget::mouseMoveEvent(). QImage VideoWidget::snapshot () constReturns a snapshot of the current frame shown in the widget. Эта функция была введена в Qt 4.7. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |