Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QPainter/QChart/QSvgGenerator grab() vs render() problems

QPainter/QChart/QSvgGenerator grab() vs render() problems

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 181 Views 1 Watching
  • 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.
  • LazyTL Offline
    LazyTL Offline
    LazyT
    wrote on last edited by
    #1

    Hello all,

    I have some problems with QPainter/QSvgGenerator in connection with QCharts (QScatterSeries), because grab() and render() are different - see screenshots.

    Using grab():

    img-distri-grab.png

    • all is fine

    Using render():

    img-distri-render.png

    • brushes are not visible?
    • titles are not centered or underscores are too long?

    As long as I am not using a custom brush:

    img-distri-render-defbrush.png

    • they are visible

    I use SVGs as brush like this:

    scatterSeriesHR->setBrush(QBrush(QIcon(":/svg/distribution-hr-black.svg").pixmap(settings->chart.symbolsize, settings->chart.symbolsize).toImage()));
    

    Do I need to set another option, am I doing something wrong, or is this a bug?

    Thank you,
    Thomas

    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