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. QChart legend not included when saving as pdf or png

QChart legend not included when saving as pdf or png

Scheduled Pinned Locked Moved Unsolved General and Desktop
qchartqchartviewqlegendguipng
1 Posts 1 Posters 840 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.
  • S Offline
    S Offline
    scotth
    wrote on last edited by
    #1

    Hello,

    There is a discrepancy with my chart in the GUI vs when I save it as a pdf or png. In the GUI, it appears fine as the legend is shown. However, the legend is not saved to the pdf/png file.

    For the pdf I use the QPainter function, render. for the PNG file, I use grab().

    What can typically cause this issue? What should I do to go about resolving this?

    Thanks!

    GUI:
    ok.PNG

    Saved:
    plot.png

    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