Jan-03-2020, 12:53 AM
i tried to use QtPrintSupport
it works fine with html content but image doesn't shows up
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_()