[Qt-qml] ShaderEffectItem and parent widgets

Bart Kelsey elbarto at gmail.com
Fri Feb 3 21:46:51 CET 2012


Greets!

I'd like to use ShaderEffectItem on a QML widget to have that widget affect
the appearance of everything underneath it.  For instance, it would be nice
to be able to use a shader to blur and desaturate the area underneath a
semi-transparent widget.  This is proving difficult, though, as there's no
obvious way for me to access anything on the screen below the widget in
question.  The documentation says:

It is possible to define one or more ShaderEffectItems to be a
> ShaderEffectSource<http://developer.qt.nokia.com/doc/qt-4.8/qml-shadereffectsource.html>for other ShaderEffectItems, but ShaderEffectItem should never be declared
> as a child element of its source item(s) because it would cause circular
> loop in the painting.
>

Any idea if there's a way to hack around this?  Having a widget that can
affect the pixels underneath it (with more than just alpha blending) would
allow for some pretty neat effects.

Thanks!

Bart


-- 
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20120203/83ed9fc5/attachment.html 


More information about the Qt-qml mailing list