[Interest] Apply shader effect from QtGraphicalEffects to QSGGeometryNode?

Sletta Gunnar Gunnar.Sletta at digia.com
Mon Jun 10 10:07:42 CEST 2013


On Jun 8, 2013, at 11:33 PM, Mark <markg85 at gmail.com> wrote:

> Hi,
> 
> Back when the graphical effects where first showcased in a blog i was
> already kinda scared that there would be no C++ interface to use them
> from the C++ side. Now i find myself in the position where i want to
> use the DropShadow element from that very same module in custom QML
> Scene Graph module and give a line a shadow.
> 
> I kinda - very much - dislike copying the relavant parts of the
> DropShadow code and re-create that in C++..
> 
> Is there a way that i can use DropShadow from the C++ side?

There is no way to do this using pure C++ API. You could construct it from c++ using QQmlComponent and set the source property by passing it the item that creates the geometry node.

cheers,
Gunnar

> 
> Regards,
> Mark
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list