Qt Creat or crashes when QPrinter object is declared

Printable View