Overlay widget for Phonon VideoWidget

From Qt Wiki
Revision as of 16:15, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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: