PDA

View Full Version : How to programatically print the content of a QGraphicView?



mut
25th June 2014, 16:22
I'm building an editor (similar to MS Visio) to draw a hierarchical finite state machine. Hence I need to draw rectangles (states) and lines (transitions) in a QGraphicView.

How to programmatically print the content of a QGraphicView?

Ginsengelf
25th June 2014, 16:36
Hi, you can use the QGraphicsScene::render() function to create an image or print to a printer.

Ginsengelf