Expression qt.QtLuaPrinter(mode) returns a new instance of class qt.QtLuaPrinter.

The optional argument mode is a string specifying the resolution of the initial coordinate system. The default value ScreenResolution replicates the screen resolution. Value HighResolution initializes the coordinate system with the resolution of the printer.

There are in fact two ways to setup the coordinate system:

Most printer properties should be set before creating the qt.QtLuaPainter that will peform the drawings.