It just uses QPlainTextEdit print(QPrinter*) so on my screen when running "print preview" it just shows syntax coloured html source code of the current Tab on a white background for me.
This is much easier stuff than printing from a QtWebEngine webview which is what you do in PageEdit. We still need to fix that when printing Image Tabs and Audio Video tabs.
The current code only broke because how signals and slots changed in Qt over the years and, not because of QtWebEngine vs QtWebKit as far as I can tell.
Last edited by KevinH; 02-10-2023 at 11:03 AM.
|