Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • Broken array access on NPObjects?

    1
    0 Votes
    1 Posts
    626 Views
    No one has replied
  • WebKit (Qt 5.3) not works on Windows XP SP3.

    4
    0 Votes
    4 Posts
    3k Views
    V
    Big thanks to all! I found the problem. Qt WebKit not working only when I used OpenSSL (v1.0.1e), which has been compiled with Visual Studio v120_xp toolset. All other applications and modules are working successfully with this library. Qt WebKit works successfully if I use, for example, the "old" version of OpenSSL (v1.0.1e), which has been compiled with v100 toolset.
  • 0 Votes
    2 Posts
    2k Views
    J
    [quote author="Jan Riechers" date="1410508863"]Hello, Actionscript 3 loading code: logoLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, addLogo, false, 0, true); [/quote] It seems I found the issue, maybe that helps someone else: Dont use "weak reference", last parameter, for the addEventListener, this should look like this: @logoLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, addLogo, false, 0, false);@ Amount of frames, one/1 is enough.
  • Crash with Sigma JS

    1
    0 Votes
    1 Posts
    941 Views
    No one has replied
  • QWebView does not properly grab the mouse

    1
    0 Votes
    1 Posts
    806 Views
    No one has replied
  • Webview crashes on load

    4
    0 Votes
    4 Posts
    2k Views
    B
    Try release mode
  • 0 Votes
    2 Posts
    825 Views
    C
    I just figured out the problem is limited to debug builds on osx. If I build release it works. Debug builds on linux work as well.
  • Backspace with a virtual keyboard in combination with WebView

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Unresolved external symbols error when using nextInPreOrder method

    1
    0 Votes
    1 Posts
    762 Views
    No one has replied
  • Qt WebKit crossOrigin restriction when loading images.

    4
    0 Votes
    4 Posts
    3k Views
    A
    Can you edit your first post please and add [SOLVED] for other users to know that this has been solved and a solution has been found
  • How to use qml keyboard element for different sites opened in Qml Webview

    4
    0 Votes
    4 Posts
    1k Views
    p3c0P
    You will need to create a library. Then put it into plugins/platforminputcontexts directory. If it loads well then the VirtualKeyboard will be invoked automatically when ever a input field is clicked. Check this "blog":http://tolszak-dev.blogspot.in/2013/04/qplatforminputcontext-and-virtual.html for more details.
  • Help! Cannot invoke methods of QQmlPropertyMap object added to Webkit.

    1
    0 Votes
    1 Posts
    727 Views
    No one has replied
  • Mixing qrc and file schemes in a webkit app

    2
    0 Votes
    2 Posts
    1k Views
    P
    I decided to use a webkit bridge through a simple class: @ class MyPath : public QObject { Q_OBJECT public slots: Q_INVOKABLE QString get() { return QUrl::fromUserInput(QApplication::applicationDirPath()).toString(); } }; @ That'll be passing the absolute path of the app to my script: @ view->page()->mainFrame()->addToJavaScriptWindowObject(QString("myPath"), new MyPath); @ And from there I'll load my video with my script: @ document.querySelector("#myVideo > source").src = myPath.get()+"/myvideo.mp4"; @ I'll let this thread as unsolved since I've got no answer and maybe there is a better approach. :-)
  • Websocket support in QtWebkit 1.0

    5
    0 Votes
    5 Posts
    2k Views
    R
    :)..
  • [Solved]WebView can't load flash plugin to play swf file

    4
    0 Votes
    4 Posts
    4k Views
    H
    [quote author="Gianluca" date="1408976181"]Can you post the code on how to wrap a QWebView to qml ?? I have the same problem, but I don't know how to wrap a QWebView into qml[/quote] You can do it in this way:(from qt 4.8 source code,it's compatible with 4.8/5.3) @#include "qdeclarativewebview_p.h" #include <QtCore/QDebug> #include <QtCore/QEvent> #include <QtCore/QFile> #include <QtDeclarative/QDeclarativeContext> #include <QtDeclarative/QDeclarativeEngine> #include <QtDeclarative/qdeclarative.h> #include <QtGui/QApplication> #include <QtGui/QGraphicsSceneMouseEvent> #include <QtGui/QKeyEvent> #include <QtGui/QMouseEvent> #include <QtGui/QPen> #include "qwebelement.h" #include "qwebframe.h" #include "qwebpage.h" #include "qwebsettings.h" QT_BEGIN_NAMESPACE class QDeclarativeWebViewPrivate { public: QDeclarativeWebViewPrivate(QDeclarativeWebView* qq) : q(qq) , preferredwidth(0) , preferredheight(0) , progress(1.0) , status(QDeclarativeWebView::Null) , pending(PendingNone) , newWindowComponent(0) , newWindowParent(0) , rendering(true) { } QDeclarativeWebView* q; QUrl url; // page url might be different if it has not loaded yet GraphicsWebView* view; int preferredwidth, preferredheight; qreal progress; QDeclarativeWebView::Status status; QString statusText; enum { PendingNone, PendingUrl, PendingHtml, PendingContent } pending; QUrl pendingUrl; QString pendingString; QByteArray pendingData; mutable QDeclarativeWebSettings settings; QDeclarativeComponent* newWindowComponent; QDeclarativeItem* newWindowParent; static void windowObjectsAppend(QDeclarativeListProperty<QObject>* prop, QObject* o) { static_cast<QDeclarativeWebViewPrivate*>(prop->data)->windowObjects.append(o); static_cast<QDeclarativeWebViewPrivate*>(prop->data)->updateWindowObjects(); } void updateWindowObjects(); QObjectList windowObjects; bool rendering; }; void QDeclarativeWebView::init() { d = new QDeclarativeWebViewPrivate(this); if (QWebSettings::iconDatabasePath().isNull() && QWebSettings::globalSettings()->localStoragePath().isNull() && QWebSettings::offlineStoragePath().isNull() && QWebSettings::offlineWebApplicationCachePath().isNull()) QWebSettings::enablePersistentStorage(); setAcceptedMouseButtons(Qt::LeftButton); setFlag(QGraphicsItem::ItemHasNoContents, true); setFlag(QGraphicsItem::ItemIsFocusScope, true); setClip(true); d->view = new GraphicsWebView(this); d->view->setResizesToContents(true); d->view->setFocus(); QWebPage* wp = new QDeclarativeWebPage(this); setPage(wp); if (!preferredWidth()) setPreferredWidth(d->view->preferredWidth()); if (!preferredHeight()) setPreferredHeight(d->view->preferredHeight()); connect(d->view, SIGNAL(geometryChanged()), this, SLOT(updateDeclarativeWebViewSize())); connect(d->view, SIGNAL(doubleClick(int, int)), this, SIGNAL(doubleClick(int, int))); connect(d->view, SIGNAL(scaleChanged()), this, SIGNAL(contentsScaleChanged())); }@ There two file name as you need in qt 4.8 source code: qdeclarativewebview.cpp qdeclarativewebview_p.h You should check on that and build your own wrapper
  • Bindings from Javascript to Webkit

    3
    0 Votes
    3 Posts
    5k Views
    A
    Hi Benjamin, I'm having the same need... I can do this already with PyQt5? or with cpp? Thank you!
  • Qt HTML5 Project, No remote content

    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    You're welcome :) Did you install the flash plugin on your Win64 box ?
  • QWebPluginFactory creating objects

    1
    0 Votes
    1 Posts
    683 Views
    No one has replied
  • 0 Votes
    1 Posts
    988 Views
    No one has replied
  • Qwebview: setContent() does not load image

    1
    0 Votes
    1 Posts
    897 Views
    No one has replied