QWebEngineView->print() with Preview before loadFinished()
-
Hallo,
I currently try to convert my printing functions from QTextDocument to QWebEngineView, since QTextDocument doesn't support right to left languages in tables correct. This bug was already reported over 10 years ago and got only a P3 flag. So I guess it won't be fixed in the next 10 years too.
During this conversion I noticed that it look like QPrintPreviewDialog preview shows only empty pages if the load is not finished and or convertred to QPainter. Of course I coded a signal now that wait for loadFinished() and now the print previews looks like it is always working fine.
But I must write this "fix" in many other places also. So i just wonder if there is ever a reason to preview if load isn't finished. If not:
What do you think about preview only if load is finished by default? In my opinion that is the only useful case and it would save me a lot of code if Qt behave like this.Should we write a bug/feature request about this in the bug tracker?
hmm... I fear it is difficult to know that QPainter isn't ready for the PrintPreviewDialog since QWebEngineView reports to late that it is still rendering?
Best Regards