Implemented since KBasic V1.7.
The Qt documentation in C++ of this class (QWebView) can be read here: http://doc.trolltech.com/4.4/qtwebkit.html
A control for the form object, provides a powerful full-featured web browser. |
Please read the control class overview Control as well.
The property “Value” contains the text of this control. There is “OldValue” as well. Important properties are “HomeURL”. Changing the Value only works, if no HomeURL has been set.
It is possible to display files of the project (html files in your project directory) by relative path, if you need so, copy all html files and related files in your project directory (after you created the EXE, where all runtime files are located) and set HomeURL to the first page of these html files.
Local HTML files opened by relative path are only visible by running the compiled EXE!
Getting the current page works as follow. You have a WebView “Web1” and a TextBox “TextBox1”.
Private Sub Web1_OnEvent(BackwardAvailable As Boolean, ForwardAvailable As Boolean, NewURL As String) TextBox1.Value = NewURL End Sub
For https connections you need to have openssl installed. |
Property Value As String
Property OldValue As String
Property Text As String
Same as Value. Provided for easy-use.
Property HomeURL As String
Implemented since KBasic V1.82
Function Argument(String) As String
Implemented since KBasic V1.82
Function Keys() As Strings
Implemented since KBasic V1.82
Function Values() As Strings
Function BackwardAvailable() As Boolean
Function ForwardAvailable() As Boolean
Sub Backward()
Sub Forward()
Sub Reload()
Sub OnEvent(BackwardAvailable As Boolean, ForwardAvailable As Boolean, NewURL As String)
Implemented since KBasic V1.82
Sub OnPage(NewPage As String)
<a href="file:///WEBVIEW/pagename">custom link</a> With variables which can be used by Keys() and Values(). <a href="file:///WEBVIEW/pagename?name=gut&part=333">custom link</a>
Implemented since KBasic V1.82
Sub OnLinkHovered(Link As String, Title As String, TextContent As String)
Implemented since KBasic V1.82
Sub OnLoadFinished(Ok As Boolean)
Implemented since KBasic V1.82
Sub OnLoadProgress(Progress As Integer)
Implemented since KBasic V1.82
Sub OnLoadStarted()
Implemented since KBasic V1.82
Sub OnWindowCloseRequested()