[PyQt] QPrinter.setOutputToFile is missing

Andreas Pakulat apaku at gmx.de
Thu Dec 6 17:51:06 GMT 2007


On 06.12.07 18:48:29, Mike Tammerman wrote:
> Hi,
> 
> I think, QPrinter's setOutputToFile function is not wrapped. It is in
> the documentation of the Qt4.
> 
> >from PyQt4.QtCore import *
> >from PyQt4.QtGui import *
> a = QApplication([])
> p = QPrinter()
> p.setOutputToFile(True)
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> AttributeError: setOutputToFile

As Phil said, Qt3Support stuff isn't supported. But you can just use
Printer::setOutputFileName() with a non-empty filename.

Andreas
 
-- 
Are you ever going to do the dishes?  Or will you change your major to biology?


More information about the PyQt mailing list