[Interest] Multiple rectangles or any shapes in Scene Graph plugin?
markg85 at gmail.com
Wed Jun 5 19:14:05 CEST 2013
Another day, another Scene Graph question.
In plain QML it's very easy to make a few rectangles laying on top of
each other. I'm having trouble doing the same thing in a Scene Graph
QML Component plugin (updatePaintNode specifically).
What i want to do is draw a few shapes. One is a plain simple
rectangle where i want to draw multiple lines (to make a grid). each
line is probably it's own QSGGeometry::Point2D so there is issue one.
How can i have multiple lines?
Even if i get that done, i still want to put another "layer" on top of
that grid to display something. Like a line graph/chart.
Or is the right approach to think very abstract here and have - lets
say - 3 different custom components.
3. custom shape on top of grid
If that's the case then i'd still like to know how i can draw multiple
lines from within updatePaintNode :)
In QML that would look like this:
Note: in case you're wondering. The result i'm trying to get is
somewhat like this  only with settable colors.
More information about the Interest