March 17, 2012

sweety sweety
Lab Rat
7 posts

printing contents of entire QGraphicscene

 

I m using a subclass of QGraphicscene i.e class ‘a’ which has a public member QGraphicsview *view.
I want to print the entire scene and not the view.
I tried
QPrinter printer;
if (QPrintDialog(&printer).exec() == QDialog::Accepted) { QPainter painter(&printer); painter.setRenderHint(QPainter::Antialiasing); a->render(&painter);
}
but it is printing blank page.
How do i go about this?Please help!

0 replies

 
  ‹‹ Problem with deployment on Win CE      [SOLVED]Signal from dynamic component to the page where it is created ››

You must log in to post a reply. Not a member yet? Register here!