Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Any examples of an AreaSeries brushFilename?
Forum Update on Monday, May 27th 2025

Any examples of an AreaSeries brushFilename?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 369 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    igor_stravinsky
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved