[PyQt] Strange PyQt4 behavior
Detlev Offenbach
detlev at die-offenbachs.de
Thu May 22 14:38:02 BST 2008
Hi,
I just discovered, that the following line of code fails.
printer.setPageSize(settings.value("UIPreviewer/pagesize").toInt()[0])
The error given is "TypeError: argument 1 of QPrinter.setPageSize() has an
invalid type". How do I convert an integer to a QPrinter.PageSize (e.g. 0 ->
QPrinter.A4)?
Regards,
Detlev
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the PyQt
mailing list