Results 1 to 2 of 2

Thread: printpreview problem

  1. #1
    Join Date
    Jan 2011
    Posts
    23
    Qt products
    Platforms
    Windows

    Question printpreview problem

    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

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: printpreview problem

    What does your printPreview declaration look like?

Similar Threads

  1. New button in PrintPreview
    By febil in forum Qt Programming
    Replies: 4
    Last Post: 16th March 2015, 09:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.