@Pradeep-P-N First of all sorry for my delay. I think the trouble could be with Windows and not with the code. I one of the link that you send me they have a similar trouble and it's just in Windows not in Linux. Maybe it is a problem with the kit that I am using.
Hi,did you resolve this issue? If you have resolved it ,please tell me your function. thank you very much.
I have also encountered a similar problem in Qt6.7 ,Android-13 developing.
hey , sorry for not being clear but what i meant by hosted was like node app is not hosted anywhere . So i added node code to my qt project and in main.cpp i create a Qprocess of node and then just provide localhost url to webengineview.
this solves my purpose.
So in short what i did was :
copied node app code to my qt project.
created a process of node running the node app via Qprocess.
provided localhost url:port to webengineview and it shows the app.
Hi
Not as far as i know.
You can use the MS ActiveX if you want (MSHTML)
http://doc.qt.io/qt-5/activeqt-activeqt-webbrowser-example.html
and other techs on the other platforms.
Use 'Component.onCompleted' handler to assign directly your url, or to call a function which will do that.
function setUrl(idOfWebView){
idOfWebView.url = "https://forum.qt.io"
}
WebView {
id: myWebView
anchors.fill: parent
// url: "set url here "
Component.onCompleted : { /* any JavaScript function or expressions */
// myWebView.url = "https://forum.qt.io" ( DIRECT )
//or u can call a function like this :
// setUrl(myWebView) // pass id of your webView to the function. ( FUNCTION )
}
}
LA
Hi @eLim
I am also facing the same issue in my Qt iOS application. Could you please help me to understand what part of javascript, iOS is restricting as I am using Angular to develop the web application.
Could you please provide more information what you did to resolve this issue.
Thanks in advance.
@dheerendra oh, I found where was the problem, and it wasn't actually related to context menus. I use my own BrowserApp class that inherits QApplication but I found out that I inherited it the wrong way (constructor signature was wrong) and that caused some segfaults, including the one described in my question. So now I fixed that and everything works fine.
Hi,
I find where the problem is. This line is necessary in source of WebView (java source) :
webSettings.setDomStorageEnabled(true);
I've reported the bug here.
@raven-worx Thank you, it's cleart to me now. One more question - is there any possibility of grabing image of webview on android excent taking screenshot and cropping it? I know this solution is not ideal, but can't rewrite whole app and its UI logic now.