QPlatformVideoSink Class
The QPlatformVideoSink class provides a media control for rendering video to a window. More...
| Header: | #include <QPlatformVideoSink> |
| CMake: | find_package(Qt6 COMPONENTS Multimedia REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
| qmake: | QT += multimedia |
| Inherits: | QObject |
This class is deprecated. We strongly advise against using it in new code.
Public Functions
| virtual QSize | nativeSize() const = 0 |
| virtual void | setAspectRatioMode(Qt::AspectRatioMode mode) = 0 |
| virtual void | setBrightness(float) |
| virtual void | setContrast(float) |
| virtual void | setDisplayRect(const QRect &rect) = 0 |
| virtual void | setFullScreen(bool fullScreen) = 0 |
| virtual void | setHue(float) |
| virtual void | setSaturation(float) |
| virtual void | setWinId(WId id) = 0 |
Signals
| void | nativeSizeChanged() |
Protected Functions
| QPlatformVideoSink(QVideoSink *parent) |
Detailed Description
QPlatformVideoSink is one of a number of possible video output controls.
See also QVideoWidget.
Member Function Documentation
[protected] QPlatformVideoSink::QPlatformVideoSink(QVideoSink *parent)
Constructs a new video window control with the given parent.
[signal] void QPlatformVideoSink::nativeSizeChanged()
Signals that the native dimensions of the video have changed.
[pure virtual] QSize QPlatformVideoSink::nativeSize() const
Returns a suggested size for the video display based on the resolution and aspect ratio of the video.
[pure virtual] void QPlatformVideoSink::setAspectRatioMode(Qt::AspectRatioMode mode)
Sets the aspect ratio mode which determines how video is scaled to the fit the display region with respect to its aspect ratio.
[virtual] void QPlatformVideoSink::setBrightness(float)
Sets a brightness adjustment for a video overlay.
Valid brightness values range between -100 and 100, the default is 0.
[virtual] void QPlatformVideoSink::setContrast(float)
Sets the contrast adjustment for a video overlay.
Valid contrast values range between -100 and 100, the default is 0.
[pure virtual] void QPlatformVideoSink::setDisplayRect(const QRect &rect)
Sets the sub-rect of a window where video is displayed.
[pure virtual] void QPlatformVideoSink::setFullScreen(bool fullScreen)
Sets whether a video overlay is a fullScreen overlay.
[virtual] void QPlatformVideoSink::setHue(float)
Sets a hue adjustment for a video overlay.
Valid hue values range between -100 and 100, the default is 0.
[virtual] void QPlatformVideoSink::setSaturation(float)
Sets a saturation adjustment for a video overlay.
Valid saturation values range between -100 and 100, the default is 0.
[pure virtual] void QPlatformVideoSink::setWinId(WId id)
Sets the id of the window a video overlay end point renders to.