Python Forum
[PyQt] print an image using PyQt
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] print an image using PyQt
#1
i tried to use QtPrintSupport
it works fine with html content but image doesn't shows up
from PyQt5 import QtPrintSupport

self.editor = QTextEdit(self)
self.editor.setHtml(html_page_var)
dialog = QtPrintSupport.QPrintPreviewDialog()
dialog.paintRequested.connect(self.editor.print_)
dialog.exec_()
Reply


Messages In This Thread
print an image using PyQt - by micro - Jan-03-2020, 12:53 AM
RE: print an image using PyQt - by micro - Jan-03-2020, 11:15 PM
RE: print an image using PyQt - by Denni - Jan-07-2020, 04:00 PM
RE: print an image using PyQt - by micro - Jan-08-2020, 10:50 AM
RE: print an image using PyQt - by Denni - Jan-08-2020, 03:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] Newbe question about Print() to PyQt TimW 9 14,552 Dec-19-2017, 11:36 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020