Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QChart legend not included when saving as pdf or png
scotth last edited by
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?