[Gambas-user] gb.gui.webview

Benoît Minisini g4mba5 at gmail.com
Sun Apr 25 22:06:39 CEST 2021


Le 25/04/2021 à 20:40, Martin a écrit :
> ok, SetHtml() method is fine, but qt4 is not available SetHtml() so that 
> is not retro compatible.
> 
> Solutions:
> 
> 1) Include SetHtml() method in qt4.
> 
> 2) Modify the code in programs as
> 
> If gambas.version < 3.16  then
> 
> Webview1.HTML = "the_HTML_Code"
> 
> else
> 
> Webview1.SetHtml("the_HTML_Code")
> 
> endif
> 
> But, ¿How to check properly the gambas version?
> 
> Tanks.
> 

It's because you shifted from "*.webkit" component to "*.webview" 
component. The old WebView is still available in the "*.webkit" 
components with the same interface as before.

Regards,

-- 
Benoît Minisini


More information about the User mailing list