Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • Is it possible to build Qt WebKit separately?

    Unsolved
    6
    0 Votes
    6 Posts
    4k Views
    K
    @jcar87 To build legacy QtWebKit you should point LIB and INCLUDEPATH variables to locations of your ICU includes and libraries. So it's absolutely possible to build it standalone, though you should not do that because it is insecure, slow[*], and does not support modern web standards. [*] On Windows it lacks LLInt tier in JavaScript engine that is important for good speed. In TP5 it works as it was designed.
  • Module(s) not found

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    K
    For 5.8 you can download QtWebKit TP5 binaries at https://github.com/annulen/webkit/releases/tag/qtwebkit-tp5
  • How to find the absolute screen position of an element on a webpage.

    Unsolved
    6
    0 Votes
    6 Posts
    4k Views
    K
    @grheard BTW, simply accessing Document from MediaPlayer is considered a layering violation in modern WebKit (i.e. WebCore/platform and rest of WebCore are different layers). You should work with MediaPlayerClient only.
  • Why the z-index doesn't work on npapi windowed plugin in Qtwebkit.

    6
    1 Votes
    6 Posts
    3k Views
    M
    @Carry-Hu said in Why the z-index doesn't work on npapi windowed plugin in Qtwebkit.: I faced the same problem, and my Qt version is Qt5.5.1. QtWebkit plugin will always be on the top despite z-index in the style property, other objects with higher z-index will be corvered by this plugin. Is there any resolution to put the plugin at the bottom of the webview? thx if you solved this problem,please tell me,thx
  • Problem with mouseWheelEvent in SWF, loaded to QWebView

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    V
    @ThatDud3, well, it really seemes like a bug, because latest WebKit has no such problem. Thank you for help!
  • Building Qt WebKit with media support

    webkit multimedia
    3
    0 Votes
    3 Posts
    2k Views
    O
    guess it's not actual anymore, but having same issue with 5.6.0 to resolve it you can add following into your qtwebkit/Source/WebCore/DerivedSources.pri enable?(MEDIA_STREAM) { IDL_BINDINGS += $$PWD/Modules/mediastream/MediaStream.idl ### you might need some others idl from this folder too } and search for generateBindings.commands in same file and add "--include Modules/mediastream"
  • Trying to build qt-webkit-tp4 on windows

    24
    0 Votes
    24 Posts
    11k Views
    K
    @borisa Sorry, forgot to notify you, all fixes were pushed to snapshots repo some time ago
  • retrieve website html source code (without javascript rendering)

    10
    0 Votes
    10 Posts
    4k Views
    K
    @datasunny You are right, buffer may have different encoding. My initial thought of this API was to return QByteArray to avoid useless encoding conversion for those who just needs e.g. to save it into file. Now I think we should better have easy API returning QString, and advanced API returning object with QIODevice and properties like encoding and MIME type.
  • Catching JavaScript error messages.

    Solved javascript alert error messagebox
    8
    0 Votes
    8 Posts
    4k Views
    McLionM
    @Konstantin-Tokarev For normal web browsing that would be sufficient, yes. In my case we use a web-driven GUI. If I stop the script that needed too long (due to some network error or whatever) the GUI is missing on the device.
  • Get confirmation that a key has reached JS

    Solved webview webkit jscript keyevent
    33
    0 Votes
    33 Posts
    14k Views
    McLionM
    Finally coming back to this ... and found the issue :-) DBGWebPage *NewPage = new DBGWebPage(webGUI); The new Page was not a child of the correct object. I checked pointers as suggested. The connect of the JS bridge showed no issues. However, the first call from JS (signal javaScriptWindowObjectCleared() calling my populateJavaScriptWindowObject()) crashed on QWebFrame * webGUIframe = qobject_cast<QWebFrame *>(sender()); QWebView * webGUI = (QWebView*)(webGUIframe->parent())->parent(); obviously because it was pointing to 'nothing' instead of a QWebView. Thank you guys for all the hints.
  • QPrinter creates blurred PDFs in arm target machine

    6
    0 Votes
    6 Posts
    3k Views
    A
    @Konstantin-Tokarev Sorry for the delayed response.. Qt 4.8 doesn't support this attribute. Thanks, Akhil
  • Problem with Webkit or Surface Pro?

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    J
    @Konstantin-Tokarev I'm using QT from C#.
  • Multiple, identical instances of WebView, dynamically created

    Moved Solved multiple qwebview
    5
    0 Votes
    5 Posts
    3k Views
    McLionM
    @Konstantin-Tokarev said in Multiple, identical instances of WebView, dynamically created: Approach with multiple views is optimal when you want all those pages to be present on screen at the same time, or have indpendent "tabs" like in a browser with separate navigation histories and possibility to do background work like playing music This is about what we do. The screen is divided into various sections that are used for various menus, sub-menus, lists ... and more. These need to be loaded and shown/hidden separately or at the same time. The GUI is completely based on webpages with html/css/php/js. I have it working pretty smart now, though there are some limits like a key can not be sent to a webGUI that is hidden for instance, which would be great to preload a GUI section before showing.
  • QTWebkit 5.3.1 Configuration for HTML5 Video playback

    8
    0 Votes
    8 Posts
    4k Views
    K
    @chanyenping QtWebKit can use 2 different player implementations: GStreamer and QtMultimedia. If you are using GStreamer (on Linux you really should, because QtMultimedia acts just like an additional layer on top of GStreamer, and is not as integrated into WebKit as GStreamer player), you don't need any QtMultimedia stuff on device. As for GStreamer plugins, you should look what codecs you need to support, for widest coverage you need all plugins. You may also need to adjust code to make use of hardware acceleration, if your device vendor provides gstreamer integration
  • (Qt 5.5.1)QtWebkit plugin always appear on the top layer

    1
    0 Votes
    1 Posts
    495 Views
    No one has replied
  • Error when trying to use QWebEngine

    Unsolved
    9
    0 Votes
    9 Posts
    4k Views
    M
    @Konstantin-Tokarev Thanks.
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to build the Webkit from source ?

    2
    0 Votes
    2 Posts
    817 Views
    SGaistS
    Hi and welcome to devnet, Which version of Qt are you using ? On which OS ?
  • WebKit with openssl and certificate

    1
    0 Votes
    1 Posts
    599 Views
    No one has replied
  • QML webview delete cookies

    3
    0 Votes
    3 Posts
    2k Views
    T
    Thanks for the tip, I'm running on Windows at the moment and found the cookies stored under {QStandardPaths::DataLocation}/QtWebEngine. For anyone else looking at this the following code should clear your cookies //Delete cookies QStringList paths = QStandardPaths::standardLocations(QStandardPaths::DataLocation); for (int i = 0; i < paths.size(); ++i) { QDir dir(paths.at(i) + "/QtWebEngine"); if (dir.isReadable()) dir.removeRecursively(); }