[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: QT6 Webview Print function disapeared ?
[Thread Prev] | [Thread Next]
- Subject: Re: QT6 Webview Print function disapeared ?
- From: Yahoo <olivier.cruilles@xxxxxxxx>
- Date: Sun, 18 Jan 2026 15:26:53 -0500
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
I tried already this JavaScript command but nothing happened, no print panel, no message. Olivier > Le 18 janv. 2026 à 15:10, Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> a écrit : > 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.
| Re: QT6 Webview Print function disapeared ? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: QT6 Webview Print function disapeared ? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |