[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QT6 Webview Print function disapeared ?


Le 18/01/2026 à 21:04, Olivier Cruilles a écrit :
Hello,

In QT5 Webkit, a easy way to print the content of a WebView was available by:

Ex: WebView1.Current.Print(Printer1)

But now in QT6 Webview, this option does not existe anymore for printing. What is the equivalent function to print front a Webview in QT6 now ?

Did I missed something ?

Thank you

Olivier


Qt6 now uses the Chrome engine, and so all methods that need to access the content of the page directly have disappeared.

You have to replace these methods by javascript code.

In your case, 'window.print();'.

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: QT6 Webview Print function disapeared ?Yahoo <olivier.cruilles@xxxxxxxx>
References:
QT6 Webview Print function disapeared ?Olivier Cruilles <olivier.cruilles@xxxxxxxx>