Trying for the first time to print a custom widget of mine I created a QPrinter set to do postscript or PDF output and called the top widget's render() method. This did draw to the output file but as a pixmap (so not scalable). Reading the Qt code I see code suggesting this behavior may be an option and there may be a way to pass the QPrinter PaintDevice directly to my widget's paint routines so when I call things like mypainter->drawLine it results in a scalable vector rather pixels.
So I'm wondering if others have done such saving of real scalable vector graphics from custom widgets and what settings they may have needed to make this work
thanks for any help!
John
Bookmarks