On Tue, Apr 17, 2012 at 4:09 PM, alhad wrote:
> but, i am getting AttributeError for "paintRequested"
Before executing that line, find out what 'preview' contains. My guess
is that you have an error return such as None, which will of course
not have a paintRequested attribute. If it's not obvious
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.paintRequest