After you call Prepare, there are QRPrinter created. This is a container for generated metafiles in fact. Then You can call Export on QRPrinter (not on QR). Don't miss free QRPrinter after export.