Andy--
PyQt & PySide的交流信息:
QQ群号: 143061743
邮件列表: pyqt-...@googlegroups.com
---
您收到此邮件是因为您订阅了 Google 网上论坛的“PyQt & PySide”论坛。
要向此网上论坛发帖,请发送电子邮件至 pyqt-...@googlegroups.com。
要取消订阅此网上论坛,请发送电子邮件至 pyqt-pyside...@googlegroups.com。
通过以下网址访问此论坛:http://groups.google.com/group/pyqt-pyside?hl=zh-CN。
This method is also a Qt slot with the C++ signature void print(QPrinter *) const.
Prints the frame to the given printer.
See also render().
==========================================
From above you need pass the QPrinter object to it.
I didn't try that yet. You may need give it a try first.
Andy,I know where is the problem now, change the code like below, it works on my Macbook:# you have no tr() or sth imported. So:dialog.setWindowTitle("Print Document")# print() --> print_(self.printer)webFrame.print_(self.printer)# printRequested() --> printRequested(QWebFrame *)self.connect(self, QtCore.SIGNAL("printRequested(QWebFrame *)"), self.customPrintRequested)Hope it helps.Gui
Gui