Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • Dummy ICU library approach for embedded devices

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    ?
    @Konstantin-Tokarev Thanks Konstantin! Really good news for me. I will try this solution asap...
  • Can QWebKit be used to run Qt App on Server side?

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    K
    For example, with remote X11 connection you can access QtWebKit running on server like any other application
  • Webkit QFont::setPixelSize: QT 5.5 on Arch linux

    Unsolved
    1
    0 Votes
    1 Posts
    798 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • unknown module(s) in qt webkitwidgets qt5.7.0

    Unsolved
    7
    0 Votes
    7 Posts
    7k Views
    ArsalenQtA
    @Konstantin-Tokarev I will go on by your advice and start with QtWebEngine, thanks a lot.
  • QGraphicsWebView rendering webpage issue

    4
    0 Votes
    4 Posts
    3k Views
    K
    @tushar Note that you may want to use QOpenGLWidget these days instead of QGLWidget
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Building QtWebKit for Qt 5.7 win32-msvc2015

    Unsolved qtwebkit qt5.7
    12
    0 Votes
    12 Posts
    6k Views
    K
    My bad, it's actually "LIB", not "LIBS". It should contain semicolon-separated list of directories where libraries can be searched
  • Your experience migrating from Qt WebKit to Qt WebEngine?

    Unsolved
    15
    0 Votes
    15 Posts
    5k Views
    A
    Indeed and I am, for one, very much looking forward to it. Thanks again @Konstantin-Tokarev for all your hard work on bringing the latest version of WebKit to Qt.
  • PDF.js and QWebSecurityOrigin (Qt 5)

    6
    0 Votes
    6 Posts
    4k Views
    CharlieGC
    Hello, Thank you both for your answers. In fact, in my case the purpose is to have PDF.JS in a QML app (with QtWebView), especially to have a viewer on android. I managed to use PDF.JS on my PC with my application by stating the absolute path. The problem is ultimately not really done the same but I'll see if I can with your components advancing. And if you have an idea it will be welcome ;). By the way if you're interested, I had already submitted this on a forum that you know well :) : http://pyqt.developpez.com/actu/90650/Afficher-un-PDF-dans-une-application-QML-en-utilisant-la-visionneuse-par-defaut-de-pdf-js-un-billet-de-Jiyuu/ http://www.developpez.net/forums/d1542148/c-cpp/bibliotheques/qt/qt-quick/afficher-pdf-application-qml/
  • Anyone using Qt WebKit with Qt 5.6?

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    C
    @agarny Wonderful. Thanks. I'll let you know how I get on. I'll be building it for 5.7 x64 Windows initially.
  • Incorrect size when print QWebView

    Unsolved
    1
    0 Votes
    1 Posts
    516 Views
    No one has replied
  • Memory size increases per page load

    13
    0 Votes
    13 Posts
    19k Views
    D
    I realize this topic is very old, but I came across this problem today and managed to figure out a work-around. The QWebSettings::setMaximumPagesInCache(0) QWebSettings::setObjectCacheCapacities(0,0,0) had absolutely no effect on the memory leak under Windows 10 and MAC OS X 10. After reading the post above, about the QWebView's caching mechanism and memory usage, I looked for more information and came across this article: https://webkit.org/blog/516/webkit-page-cache-ii-the-unload-event/ Something caught my attention - "unload event handlers, prevent pages from going into the Page Cache". Ding, ding, ding... :) So I decided to try and manually add an unload event handler to the source of each page that is loaded and see what happens. So after the page loading is complete, I do: QWebElement body=myWebView->page()->mainFrame()->findFirstElement("body"); body.setAttribute("onunload","myFunction()"); Just these two lines stopped a 1MB to 3MB memory leak per page loaded in my case. :) I'm also doing: QWebSettings::clearMemoryCaches(); webView->history()->clear(); before loading each page (because I don't need them). I hope this work-around will be helpful to other people who may stumble upon this problem in the future.
  • Linux: build Qt WebKit against a specific version of ICU?

    Solved
    12
    1 Votes
    12 Posts
    7k Views
    A
    Well, I have just given it a try, i.e. $ cd [QtWebKit] $ PKG_CONFIG_PATH=[ICU]/install/lib/pkgconfig qmake -r $ make First, I got the following at the end of the call to qmake: Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/WTF/WTF.pro Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/JavaScriptCore/JavaScriptCore.pro Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/ThirdParty/ANGLE/ANGLE.pro Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/ThirdParty/leveldb/leveldb.pro Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/ThirdParty/leveldb/Target.pri Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/WebCore/WebCore.pro Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/WebKit/WebKit1.pro Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/WebKit2/WebKit2.pro Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/QtWebKit.pro Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/api.pri Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/widgetsapi.pri Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/WebKit2/WebProcess.pro Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/WebKit2/PluginProcess.pro Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/WebKit/qt/declarative/declarative.pro Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/WebKit/qt/declarative/public.pri Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/WebKit/qt/declarative/experimental/experimental.pri Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/WebKit/qt/examples/examples.pro Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/WebKit/qt/examples/platformplugin/platformplugin.pro WARNING: DESTDIR: Cannot access directory '/opt/Qt/5.6/gcc_64/plugins/webkit' Reading /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Tools/Tools.pro Then, when building Qt WebKit, I eventually got: /usr/bin/ld: warning: libicui18n.so.56, needed by /opt/Qt/5.6/gcc_64/lib/libQt5Core.so, may conflict with libicui18n.so.52 /usr/bin/ld: /home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/WTF//.obj/wtf/unicode/icu/CollatorICU.o: undefined reference to symbol 'ucol_setAttribute_56' /opt/Qt/5.6/gcc_64/lib/libicui18n.so.56: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [../../bin/jsc] Error 1 make[2]: Leaving directory `/home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/JavaScriptCore' make[1]: *** [sub-jsc-pro-make_first-ordered] Error 2 make[1]: Leaving directory `/home/alan/Desktop/qtwebkit-opensource-src-5.6.1/Source/JavaScriptCore' make: *** [sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2 Well, needless to say that I am calling it a day. :) In the end, I have got a working solution, so I am 'happy' to accept that I don't and might never understand why I need to export a new PKG_CONFIG_PATH rather than modify it 'inline'...
  • Web App and C++ library

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    miclandM
    @Konstantin-Tokarev said: @micland Actually no, QtWebKit can extend HTML&co by means of custom objects, injected into the page (look for "QtWebKit bridge"), and also custom widgets via Qt plugins (QWebPluginFactory). Ok, that's right - but AFAIR it requires a QtWebKit based browser engine, "just an installed browser" is not sufficient....
  • Unknown module(s) in QT: webkitwidgets webkit in Window

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    You're welcome ! If that answers your question then please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
  • 0 Votes
    2 Posts
    3k Views
    M
    Now I am not getting libqt5webchannel.so.5 missing error (which is dependency of qt webkit) in Ubuntu 16.04. Till now I was using Ubuntu 14.04 compatible debian/rule file in Ubuntu 16.04 machine during creating debian package. I just made changes in debian/rule file as per Ubuntu 16.04 and it works. But I did not know how to install qt5webchannel in Ubuntu 16.04.
  • Building NPAPI plugin without X11 in QTWebkit ?

    Unsolved npapi webki
    2
    0 Votes
    2 Posts
    1k Views
    K
    Here is experimental patch adding NPAPI support on DirectFB: https://bugs.webkit.org/show_bug.cgi?id=36171 However, if you are planning to write plugins yourself, you may find it easier to inject your conent into the page with QObject bridge. More complicated approach (but still more productive and likely more CPU-efficient than NPAPI way) is implementing your custom elements inside WebKit. Could you specify what are you planning to achieve with plugin?
  • How Can Call C++ Function in WebView Javascript?

    Unsolved webkit javascript
    2
    0 Votes
    2 Posts
    3k Views
    K
    Use QObject bridge: http://doc.qt.io/qt-4.8/qtwebkit-bridge.html After you add qobject-derived object to JS you can call its slots, signals or invocable methods
  • QtWebKit 5.5.1 module fails to build

    Unsolved webkit
    3
    0 Votes
    3 Posts
    2k Views
    K
    First of all, instead of 5.5.1 these days you should build 5.6.1, using qtwebkit sources from [1]. See [2] for dependencies that you need to install in order to build QtWebKit. [1] http://download.qt.io/community_releases/5.6/5.6.1/ [2] http://wiki.qt.io/Building_Qt_5_from_Git