[Interest] Apply shader effect from QtGraphicalEffects to QSGGeometryNode?
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:
> 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.
> Interest mailing list
> Interest at qt-project.org
More information about the Interest