I want to print a QGraphicsScene's contents. How do I do this? The following code is wrong
Qt Code:
void MainWindow::print() { QPrinter printer; //QGraphicsScene scene = anotherQGraphicsView->scene(); //What lines of code should I use to get another QGraphicsView's scene //No method like getScene() exists scene->render(&painter); } }To copy to clipboard, switch view to plain text mode
Bookmarks