Как распечатать в текстовом режиме страницу, отображаемую с помощью QWebEngineViewPython

Программы на Python
Гость
Как распечатать в текстовом режиме страницу, отображаемую с помощью QWebEngineView

Сообщение Гость »


Using PySide6 I load an html page in a QWebEngineView and print it with:

dialog = QPrintDialog(self) if dialog.exec() == QPrintDialog.Accepted: printer = dialog.printer() self.wevReport.print(printer) After selecting the printer with the search button it prints the page, but as an image, not as text, which would be the proper thing to do? (wevReport is the QWebEngineView).

Any suggestions.

Вернуться в «Python»