Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • Slow animation in QWebView, when browsing list

    3
    0 Votes
    3 Posts
    2k Views
    V
    Problem with images was resolved by adding some settings which relate to cache. @ QWebSettings::globalSettings()->setMaximumPagesInCache(10); QWebSettings::globalSettings()->setObjectCacheCapacities(810241024, 1610241024, 2410241024); @
  • Qt webkit play Audio tag will be hug up.

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    SGaistS
    Thread closed for duplication
  • I found a qt webkit bug

    2
    0 Votes
    2 Posts
    927 Views
    jensen82J
    Search for your issues here: https://bugreports.qt-project.org/secure/BrowseProjects.jspa If you are sure, the bug exists ans was not fixes till today, create a new one.
  • 0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi and welcome to devnet, This question is better suited for the interest mailing list. You'll find there Qt's developers/maintainers (this forum is more user oriented)
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • [QWebView] QSslSocket and segmentation fault

    5
    0 Votes
    5 Posts
    3k Views
    M
    I don't think this is connected to OpenSSL whatsoever. This an ASSERT being hit in the WebCore rendering code, so it won't trigger / crash in Release mode and is there mainly for verifying that assumptions about the state the method was called in are correct when debugging the engine itself. There were a couple of fixes of asserts between 5.3 and 5.4, so it might be worth trying this with 5.4.0 beta once it has been released.
  • How to login web-form using Qt5

    2
    0 Votes
    2 Posts
    4k Views
    T
    FUCK IT, I'M WRITING IT ON JAVA!
  • Javascript to qml (integration issue)

    7
    0 Votes
    7 Posts
    2k Views
    W
    Thank you kindly for your response. I am neck deep in the doc and very confused by this error. I am newish to c++ web programming. I know c++ and qt ok and I know www a lot. But not the 2 mixed. :(
  • What is the different between Svg in C++ Class and the SVG in Qt Webkit?

    2
    0 Votes
    2 Posts
    1k Views
    sierdzioS
    QtSvg module only supports SVGTiny specification, so it does not guarantee to render real SVG files accurately. It has less dependencies than WebKit, but I don't know abut the performance, you would have to benchmark it. QtWebKit has full support for SVG standard, so it should render all SVG files correctly.
  • QtWebView + Javascript Visualization Library

    4
    0 Votes
    4 Posts
    4k Views
    E
    We coincidentally just started down this path again after my response on a different project (which at yet doesn't need dynamic data, and we aren't using QML). So we haven't yet gotten to the original question--sending new data to D3 dynamically--but the basic proof-of-concept embedding of D3.js in a Qt web object (either QWebView or QGraphicsWebView) is very simple: just call XXXWebView::setURL() with the path (either local file or web URL) to your HTML source that uses D3. The bad news is that dynamically-updating D3 stuff (such as force-directed layouts, but to a lesser extent hover events, etc.) does not seem to perform well in the Qt Webkit view, even on 5.3. The frame rate looks to be several multiples slower than a Webkit browser (this is using the QGraphicsWebView, but I haven't found anything to suspect QWebView would be different). As for using the WebKit Bridge, we don't know yet. Our use case is simple enough that we could just write new data to a file, and template/rewrite our JS in that event, and reload the HTML from Qt, so that might be an option if your use case is simple or not mission-critical.
  • PDF In Qwebview

    10
    0 Votes
    10 Posts
    4k Views
    A
    1-I Have Binary Package 2-No,I Dont 3- No I Dont I Am Going To Reinstall This Stuff And I Will Post Back The Effects Thanks
  • QWebFrame::evaluateJavaScript crash

    11
    0 Votes
    11 Posts
    5k Views
    B
    Is that you said that major routes injected with "the evaluate" that caused the "crash", by this thought that if you create yourself a custom protocol like in "Firefox", you could throw huge scripts and the "Main Thread" (windows) would not crash. Using "evaluateScript", you inject only this: @< script src="janfaore://myfile.js"></ script >@ After use QTimer::singleShot() for evaluate your function.
  • JSC crashes on ARM

    4
    0 Votes
    4 Posts
    2k Views
    B
    Sound like a bug in " Cannot access memory at address 0xfffffffb", please open an issue in http://bugreports.qt-project.org/ Note: In issue add an project example of your problem compressed (tar.gz, zip, etc).
  • WebView 3.0 - how to detect window.open and load the page

    8
    0 Votes
    8 Posts
    4k Views
    B
    "WebView" would be something like the "frame" already "QtWebKit" technology would be used by the "frame". It's like you get a file "javascript", eg jQuery and create animation with jquery inside an "HTML" page. The "HTML + CSS" would be the frame and the "Jquery" technology would be used to give the animated effect. What I mean is that the technology you are using is "QtWebKit3.0", but that does not mean he is not part of the "WebView". When you have some time I will see if it is possible to catch the "WebView" and "connects it with the cpp file" in order to later use "setPage". With "setPage" it is possible to detect the events of "window.open".
  • [Qt 5.3] Replacing the window JS object or trace member access

    3
    0 Votes
    3 Posts
    1k Views
    B
    Tried use "QWebFrame::evaluateScript" ?
  • Jquery in combination with qml webview

    2
    0 Votes
    2 Posts
    2k Views
    B
    Show log in DEBUG mode, enable console in webView desktop (if possible). I try compile in my desktop your QML, but not showed... (invisible for me...) i try this: @import QtQuick 2.2 import QtQuick.Controls 1.1 import QtWebKit 3.0 import QtWebKit.experimental 1.0 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") menuBar: MenuBar { Menu { title: qsTr("File") MenuItem { text: qsTr("Exit") onTriggered: Qt.quit(); } } } WebView { id: mesWebView width: parent.width height: parent.height anchors.fill: parent url: "http://www.jquery4u.com/demos/ajax/" experimental.preferences.javascriptEnabled: true } } @ Work fine for me... So the problem must be in YOUR JAVASCRIPT (and not Jquery) that is a fault with that usually when we do not use "use strict;" the problem does not occur in some webbrowsers, but can occur in others. Try using the "use strict;" and test your page in "google chorme" in "firefox". (READ ABOUT in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode) You will probably see some normal mistakes WE usually do in javascript. Good luck!
  • 0 Votes
    2 Posts
    4k Views
    B
    Try create an Object like this: customjs.h @class customJS : public QObject { Q_OBJECT public: Q_INVOKABLE void customMethod();//called in evaluate signals: void customSignal();//perfom always call customMethod }; @ customjs.cpp @ #include "customjs.h" void customJS::customMethod () { emit customSignal(); } @ Add object in WebPage/WebFrame: @#include "customjs.h" JSext = new customJS();//JSext is declared in Main class (eg.: class MainWindow : QMainWindow ...) //Added to slot: QObject::connect( JSext, SIGNAL(customSignal()), this, SLOT(mySlot()) ); applyJsToWebView(); //Apply your JS QObject::connect(MY_WEB_PAGE->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()), this, SLOT(applyJsToWebView())); //Apply if cleared js object void MainWindow::applyJsToWebView() { //customJScallback is the method name in "window object" (javascript object) MY_WEB_PAGE->mainFrame()->addToJavaScriptWindowObject(QString("customJScallback"), JSext); } void MainWindow::mySlot() { qDebug() << "Slot called"; } @ Usage: @fromCityCode.evaluateJavaScript(“this.value=‘C’; window.customJScallback();”);@ Whenever you call the "window.customJScallback", the "customJS::customSignal" signal will be emitted.
  • Ajax send status 0 on javascript in a WebView html file

    2
    0 Votes
    2 Posts
    1k Views
    B
    Using file:/// protocol?
  • Intercepting WebKit network requests

    1
    0 Votes
    1 Posts
    970 Views
    No one has replied
  • WebView does a"Tab" with hide and show

    6
    0 Votes
    6 Posts
    2k Views
    McLionM
    What's the best way to programatically send a key-event (Shift-Tab) to a WebView? @ui->webGUI->show(); ui->webGUI->setFocus(); // send a keyevent@