Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. webview
    Log in to post

    • UNSOLVED webview security
      QML and Qt Quick • qt quick javascript webview html security • • addr3ss  

      2
      0
      Votes
      2
      Posts
      94
      Views

      @addr3ss No, it's not. Resources are compiled into the executable and can be easily extracted from there. What kine of information is it?
    • UNSOLVED QML WebVIew and `runJavaScript()` with WinRT WebView
      QML and Qt Quick • qml windows 10 webview winrt • • daljit97  

      1
      0
      Votes
      1
      Posts
      201
      Views

      No one has replied

    • UNSOLVED Issues with WebView
      QML and Qt Quick • qml webview browser • • Dooham  

      5
      0
      Votes
      5
      Posts
      396
      Views

      @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.
    • UNSOLVED Impossible to detect keyboard visibility/size when using WebView on Android
      Mobile and Embedded • qml android webview keyboard • • daljit97  

      1
      0
      Votes
      1
      Posts
      549
      Views

      No one has replied

    • SOLVED how to load html,css and JS file for webView from qrc on android
      Mobile and Embedded • qml android webview qrc • • noone  

      2
      0
      Votes
      2
      Posts
      734
      Views

      @noone You will need to extract the content from qrc file to some location writable by your application and then load it from there in webview.
    • UNSOLVED WebView breaks TextField
      QML and Qt Quick • android webview textfield textinput • • stcorp  

      1
      0
      Votes
      1
      Posts
      263
      Views

      No one has replied

    • SOLVED is it possible to host nodejs app inside qt app ?
      General and Desktop • qt5 webview webengine qt5 webserver node.js • • Qjay  

      3
      0
      Votes
      3
      Posts
      956
      Views

      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.
    • UNSOLVED QML WebView counter-part for C++/Qt Widgets? (i.e. use native browser)
      General and Desktop • qml c++ widgets webview • • zura  

      12
      0
      Votes
      12
      Posts
      1970
      Views

      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.
    • UNSOLVED set Qwebview url via js function
      QML and Qt Quick • webview qml + js qwebview qquick • • Qjay  

      4
      0
      Votes
      4
      Posts
      953
      Views

      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
    • SOLVED Qt5.8 QML WebView on iOS never fires signals
      Mobile and Embedded • qml ios webview bug • • eLim  

      3
      0
      Votes
      3
      Posts
      865
      Views

      @jsulm We determined that the issue was javascript-related. The page was using javascript to perform the redirect, and iOS didn't like that. Thanks for the help, though!
    • SOLVED Segmentation fault on QMenu::exec
      General and Desktop • webview segfault context menu • • Daniil Kolesnichenko  

      4
      0
      Votes
      4
      Posts
      1332
      Views

      @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.
    • UNSOLVED The problem with using WebView
      Mobile and Embedded • qml android webview • • MrErfan  

      1
      0
      Votes
      1
      Posts
      460
      Views

      No one has replied

    • SOLVED Store data on Android (part 2 ;) )
      QML and Qt Quick • webview • • CharlieG  

      2
      1
      Votes
      2
      Posts
      655
      Views

      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.
    • UNSOLVED Can't grab image of WebView on Android
      Mobile and Embedded • qml android qt5.6 webview qt5.7 • • arthurwozniak  

      3
      0
      Votes
      3
      Posts
      1175
      Views

      @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.
    • UNSOLVED Qt and directFB: QDirectFBScreen::createDFBSurface() Failed!
      Mobile and Embedded • webview directfb dfb 1.4.3 qt 4.6.3 • • McLion  

      4
      0
      Votes
      4
      Posts
      1003
      Views

      @SGaist Thanks.
    • UNSOLVED webview cut off veritcally in mobile
      Mobile and Embedded • qml webview mobile • • Qjay  

      1
      0
      Votes
      1
      Posts
      368
      Views

      No one has replied

    • UNSOLVED QML 5.7: modoule "QtWebview" is not installed
      QML and Qt Quick • qml webview quick qtwebview • • mafhoom  

      3
      0
      Votes
      3
      Posts
      1861
      Views

      Hi and welcome to devnet, Why not free anymore ? Looks rather like a licensing issue. LGPLv2.1 has been replaced by LGPLv3.
    • Process returned JSON in webview
      General and Desktop • qml qt quick webview json • • Qjay  

      4
      0
      Votes
      4
      Posts
      1537
      Views

      In answer to my original question i did something like this onUrlChanged: { console.log(searchwebview.url); test_json(); } and i made this function to parse the returned JSON ( this function is not perfect yet ) function test_json() { var p_url = searchwebview.url var http = new XMLHttpRequest(); var json , parse , text , rev_id; http.onreadystatechange = function(){ if(http.readyState == 4 && http.status == 200) { json = http.responseText; parse = JSON.parse(json); rev_id = parse.parse.revid; console.log(rev_id); text = parse.parse.text["*"]; //console.log(text); // <-- STRIP ME (o.O) while(text.match(/&#39;\/index.php/)){ text = text.replace(/&#39;\/index.php/, "http://en.wikitolearn.org/index.php"); text = text.replace(/&amp;/,"&"); text = text.replace(/MathShowImage&amp;/, "MathShowImage&") text = text.replace(/mode=mathml&#39;/, "mode=mathml\""); text = text.replace(/<meta class="mwe-math-fallback-image-inline" aria-hidden="true" style="background-image: url\(/ ,"<img style=\"background-repeat: no-repeat; background-size: 100% 100%; vertical-align: -0.838ex;height: 2.843ex; \" src=\""); text = text.replace(/<meta class="mwe-math-fallback-image-display" aria-hidden="true" style="background-image: url\(/ ,"<img style=\"background-repeat: no-repeat; background-size: 100% 100%; vertical-align: -0.838ex;height: 2.843ex; \" src=\""); text = text.replace(/&amp;mode=mathml\"/ , "&mode=mathml>\""); text = styling + text; } console.log(text); // after strip :p . webview.loadHtml(text); } }; http.open('GET',p_url); http.send(); }
    • UNSOLVED Webview is not loading more than 1 page
      General and Desktop • qml qt quick qt 5.7 webview • • Qjay  

      1
      0
      Votes
      1
      Posts
      382
      Views

      No one has replied

    • SOLVED Issues with stackview
      General and Desktop • webview stackview transition • • Qjay  

      6
      0
      Votes
      6
      Posts
      3585
      Views

      SOLVED onClicked: { loader.source = "qrc:/pages/search.qml" stackView.push(loader.item) listView.currentIndex = -1 } Thanks @medyakovvit
    • UNSOLVED Loading webview on button click
      General and Desktop • qml webview qt5.7 • • Qjay  

      1
      0
      Votes
      1
      Posts
      427
      Views

      No one has replied

    • SOLVED Webview is not loading any page
      General and Desktop • qml qt 5.7 webview • • Qjay  

      7
      0
      Votes
      7
      Posts
      3034
      Views

      Okay !! sure
    • UNSOLVED WebView and eventFilter
      Mobile and Embedded • qml android webview • • Skroopa  

      1
      0
      Votes
      1
      Posts
      596
      Views

      No one has replied

    • SOLVED How to make FileDialog and select file to load in webview ?
      QML and Qt Quick • qml webview file filedialog • • Qjay  

      5
      0
      Votes
      5
      Posts
      1175
      Views

      I just solved it myself (feels great ) . i used a property url to get url of file then assigned it to url of webview
    • SOLVED How to display received HTML from an API to webview ?
      QML and Qt Quick • qt quick webview html • • Qjay  

      8
      0
      Votes
      8
      Posts
      2778
      Views

      @Wieland Thanks !! it works fine . I will now complete the QMLbook . i am still noob :/ Thanks for the help
    • UNSOLVED Difficulties in working with Webview
      QML and Qt Quick • qml webview webkit • • MrErfan  

      1
      0
      Votes
      1
      Posts
      437
      Views

      No one has replied

    • UNSOLVED Qt 5.6 android qml webview handle keyboard: HELP! BUG in WebView:!
      Mobile and Embedded • android webview inputmethod input system • • adderly  

      3
      0
      Votes
      3
      Posts
      1900
      Views

      Hi, AFAIK, the QtWebView module is TP so that's the kind of thing that may have slipped through. You should take a look at the bug report system to see if there's already something about it. If not then please consider opening a new report.
    • UNSOLVED Read Flash content messages from webview.
      General and Desktop • qt5.5 webview • • VinayTomer  

      1
      0
      Votes
      1
      Posts
      506
      Views

      No one has replied

    • SOLVED How to reconnect network?
      Qt WebKit • webview qtwebkit • • carter  

      4
      0
      Votes
      4
      Posts
      1295
      Views

      @raven-worx OK I get some error info in WebPage::extension functional when continue operating under network doesn't work. I also get same info when network work. then I check the real network status in extension functional and use setNetworkAccessible(QNetworkAccessManager::NetworkAccessibility::Accessible) to set network accessibility, that's solved. I guess that will tell qt network is fine to reconnect network.
    • UNSOLVED JavaScript is removed in a server reply
      Qt WebKit • javascript visual studio webview vmware asp.net • • Jvadri  

      2
      0
      Votes
      2
      Posts
      922
      Views

      same client and server setup, but different out put sounds very strange... I would suspect some misconfiguration on the VM webserver. But here are some thoughts: Some servers also behave strange when no USER-AGENT header is sent with the request Is the javascript embedded`/inlined or referenced externally as file in the yhead> section? what do the IIS logs tell?
    • UNSOLVED Connection from Qwebview to Qwebsocketserver problem
      General and Desktop • webview websocket websocketserver • • TeunGri173  

      2
      0
      Votes
      2
      Posts
      1620
      Views

      @TeunGri173 I did a test against http://www.websocket.org/echo.html with QWebView in my application. This test is working correctly. So there is someting with the QWebSocketServer I use. The only I do is: ws = new QWebSocketServer("", QWebSocketServer::NonSecureMode, this); ws->listen( QHostAddress::Any, 13031); And of course connect to the newConnection() signal. resume test results: Backend Frontend Result websocket.org QWebView OK websocket.org FireFox OK websocket.org Chrome OK QWebSocketServer QWebView FAIL QWebSocketServer FireFox OK QWebSocketServer Chrome OK Only the combination QWebSocketServer / QWebView failed. Any hints wat to configure in QWebSocketServer ? Or could it possibly be a bug ? Thanks in advance for your info.
    • Prevent marking in WebView
      Qt WebKit • webview • • McLion  

      4
      0
      Votes
      4
      Posts
      1193
      Views

      @maximo Thanks for the input. I'll look into that.
    • Webview disables touch throughout entire application
      Qt WebKit • qt4 webview webkit webview webkit • • JackCWallace  

      1
      0
      Votes
      1
      Posts
      544
      Views

      No one has replied

    • Embeding Haxe hxcpp code in your Qt/Qml application
      Mobile and Embedded • webview html5 haxe • • Fred_at_Plexant  

      2
      0
      Votes
      2
      Posts
      1327
      Views

      Hey, I am successfully using hxcpp in Qt application. I have not tried it on iOS yet, but android works. But I am not calling any Qt function from haxe. Instead I am building a C++ static lib from haxe containing the backend code. Then I have some C++ wrapper code that connects the backend functions with QML. Best Regards, Nathan
    • How to play HTML5 video file on i.MX6 with QtWebKit
      Mobile and Embedded • linux video webview qtwebkit i.mx6 qt5.4.2 webview webkit • • njozwiak  

      1
      0
      Votes
      1
      Posts
      1494
      Views

      No one has replied

    • Wrong mouseButton returned in a WebView after onNavigationRequested
      QML and Qt Quick • qml webview kde linux distr • • Cqoicebordel  

      2
      0
      Votes
      2
      Posts
      1043
      Views

      Since I can't find a solution, I'm trying to do it an other way : Intercept ctrl or middle click before they are passed to the webview. For that, I tried to use a mouseArea, but then I'm not able the send back the events to the webview. Even with propagateComposedEvents, and even setting mouse.accepted = false. It looks like mouseArea is stealing everything, and doesn't let any click go to the underlying webview if the button is set in acceptedButtons. Do you have an idea to go around that ?
    • QML WebView display problems on IMX6
      Mobile and Embedded • qml embedded webview imx6 framebuffer resolution • • mokat  

      1
      0
      Votes
      1
      Posts
      981
      Views

      No one has replied

    • WebView Content Size Problem
      QML and Qt Quick • qml qtquick qt 5.4 webview os x qt application qt5.4.1 • • bck25  

      3
      0
      Votes
      3
      Posts
      1849
      Views

      Thanks so much for taking a stab at it. I tried setting the experimental.preferredMinimumContentsWidth to numbers ranging from 1 to 10000, but it doesn't seem to have any sort of affect for me. I have tried playing around with experimental.page.scale. I found setting it to 1200/webview.width gives something similar to what I'm looking for. It prevents the page from shrinking when resizing. However, everything ends up getting very blurry, so it can't be a solution for me. I'll try digging through the experimental settings some more. It's too bad that it isn't better documented. It is so sad that this zooming "feature" can't be turned off. It looks like QWebView behaves properly by default, but it is a Qt widget, not a Qt Quick widget. So I won't be able to use it in my application. If anyone out there knows how to fix this, please help!