WebView not showing html page

Post

Posted
Rating:
#1 (In Topic #1577)
Regular
monteiro is in the usergroup ‘Regular’
Good morning.
Fedora Linux 42 (Workstation Edition) - Gnome
Gambas 3.20.4 with gb.gui.qt and gb..gui.qt.webview

The code

Code

WebView1.Url = "path to html file"
     WebView1.Refresh
was previously working correctly  but now, after updating to gambas 3.20.4, the control shows nothing.

has anything changed?

Online now: No Back to the top

Post

Posted
Rating:
#2
Regular
monteiro is in the usergroup ‘Regular’
I downloaded and tested this example using qt5 and it worked well.
https://forum.gambas.o…wtopic.php?p=10744#p10744

Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’

monteiro said

I downloaded and tested this example using qt5 and it worked well.
https://forum.gambas.o…wtopic.php?p=10744#p10744
This example you downloaded uses qt.webkit component and not qt.webview component (they are not the same but both have a WebView control)
Try the one below, it works for me on 3.19.6 and I tried on 3.20.99 (master). It explicitly uses qt5.webview component.
You might want to do a compile all before running as I made it in 3.19.6

Let me know if it works or not and we'll try to figure out what's going on.

Attachment

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: No Back to the top

Post

Posted
Rating:
#4
Regular
monteiro is in the usergroup ‘Regular’
 I tested it on 3.20.99 and worked flawless.
Thank you, Willy

Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’

monteiro said

I tested it on 3.20.99 and worked flawless.
Thank you, Willy
Your welcome.
I'm glad it worked

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: No Back to the top
1 guest and 0 members have just viewed this.