It's too late, but just to notice, you should use:
qmp = qpm.scaled(p.pageRect().width(), p.pageRect().height(), Qt::KeepAspectRatio);
qmp = qpm.scaled(p.pageRect().width(), p.pageRect().height(), Qt::KeepAspectRatio);
To copy to clipboard, switch view to plain text mode
instead of:
qpm.scaled(p.pageRect().width(), p.pageRect().height(), Qt::KeepAspectRatio);
qpm.scaled(p.pageRect().width(), p.pageRect().height(), Qt::KeepAspectRatio);
To copy to clipboard, switch view to plain text mode
Otherwise your qpixmap won't be rescaled!
Regards,
Oscar
Bookmarks