Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved QChart legend not included when saving as pdf or png

    General and Desktop
    qchart qchartview qlegend gui png
    1
    1
    320
    Loading More Posts
    • 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
      scotth last edited by

      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 Reply Quote 0
      • First post
        Last post