I don't know if somebodyelse did the same question, but I'am unable to save the plot in other formats.
In my function I have
Qt Code:
  1. fileName = QFileDialog::getSaveFileName(this, tr("File name"), QString(), "Graphic files (*.svg,*png)");
  2. QImage pixmap;
  3. print(pixmap);
  4.  
  5. if( pixmap.save(fileName, "PNG" ))
  6. qDebug()<<"Saved";
  7. else
  8. qDebug()<<"Not saved";
  9.  
  10. }
To copy to clipboard, switch view to plain text mode 
I always get "Not saved". Why?
G