PrintPreviewDialog problem

Vincent Vande Vyvre vincent.vandevyvre at swing.be
Tue Apr 17 03:20:53 EDT 2012


Le 17/04/12 08:09, alhad a écrit :
> Hi Guys,
>
> I am using Python 2.5 & Qt4.4.1 on windows xp machine. I am trying to use
> printpreviewdialog for my application.
>
> printer = QtGui.QPrinter(QtGui.QPrinter.HighResolution)
> preview = QtGui.QPrintPreviewDialog(printer,self)
> preview.paintRequested.connect(self.printPreview)
> preview.exec_()
>
> but, i am getting AttributeError for "paintRequested"
>
> What could be the possible solution for this?
>
> Thanks in advance
>
> --
> View this message in context: http://python.6.n6.nabble.com/PrintPreviewDialog-problem-tp4889139p4889139.html
> Sent from the Python - python-list mailing list archive at Nabble.com.
Works fine for me.

Python 2.6.5 on Linux
Qt 4.6.2
PyQt 4.7.2

Please, paste the exact error.

-- 
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte+7
<https://launchpad.net/qarte+7> . PaQager <https://launchpad.net/paqager>




More information about the Python-list mailing list