Important: Please read the Qt Code of Conduct -

Any examples of an AreaSeries brushFilename?

  • I'm writing a Quick Controls 2 app...

    In it, I have a ChartView with an AreaSeries, and I'd like to fill the series with a gradient, rather than a solid color.

    Can I do that by creating an image file that contains the gradient?

    How do I then use that file? Do I pass in a url to the brushFileName property, in the same way I pass a url to Image.source? Image.source asks for a url, whereas AreaSeries.brushFilename asks for a string, so I'm not sure if they're similarly structured.

Log in to reply