The following convenience functions provide simple ways to perform graphic display whose output is directed to a window on the screen, to an image in memory, to a PostScript file, to a PDF file, or to a printer. Each of these functions return a Lua table that defines a number of useful fields and methods. In particular, all the painting functions defined by class qt.QtLuaPainter can be called directly using the Lua method syntax on these tables.

Subsections

  1. qtwidget.newwindow(w,h,[title])
  2. qtwidget.newimage(...)
  3. qtwidget.newps(w,h,filename)
  4. qtwidget.newpdf(w,h,filename)
  5. qtwidget.newprint(w,h,[printername])
  6. Painting functions.
  7. Other descriptor fields and functions.