Overlay widget for Phonon VideoWidget: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
(No difference)

Revision as of 16:15, 14 January 2015

If you need put any widget over VideoWidget with transparent background, you can’t do it so:

You got black background for your widget, It happens because phonon backend might use XRender for video rendering.

Bellow example of workaround, which can help you:

This is subclass of Phonon::VideoWidget with overrided events methods.

Usage example:

Main idea of this workaround is set to overlayed widget ToolTip window flag and connect move, resize, etc events of both objects.

Categories: