Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • 0 Votes
    2 Posts
    3k Views
    QWebView/QWebPage/QNetworkAccessManger by default reject content with SSL errors.
  • About exporting bindings to JavaScript

    22 Dec 2010, 10:41
    0 Votes
    3 Posts
    3k Views
    Development started 1.5yrs ago and is based on Qt 4.6, some of this might be outdated or now documented. Thanks for pointing at these references, hope my few lines can still help a few lost developpers ;-)
  • 0 Votes
    3 Posts
    4k Views
    I have exact same code but I am not using QwebView rather I am using QGraphicsWebview but my plugin widget signals are not working, any idea/??
  • Webkit , in Qt 4.7 on N900

    29 Oct 2010, 10:45
    0 Votes
    4 Posts
    3k Views
    Where can I find more information on how to use the remote inspector? Just in case: Is it possible to install the missing files on the n900 to use the inspector on the device? what are they?
  • Is there anyway to config qtwebkit?

    24 Nov 2010, 06:25
    0 Votes
    3 Posts
    6k Views
    The build-webkit script has various options to enable and disable features. There's some information here http://trac.webkit.org/wiki/QtWebKit note that some of the options have missing #ifdef guards so you might need to hack around a bit.
  • QWebElement DOM Manipulation

    3 Dec 2010, 17:44
    0 Votes
    2 Posts
    4k Views
    Why not use QWebSettings::setUserStyleSheetUrl()? It seems that one is meant for setting a style sheet for your page. You can get a pointer to your QWebSettings instance from your QWebPage instance.
  • Xine or mplayer plugin

    3 Dec 2010, 12:49
    0 Votes
    5 Posts
    4k Views
    Sorry, no, is not a secret. QMPWidget is one option, and the other is a little bit of ripping of the phonon libmplayer stuff. The basics are quite easy though. You basically pass the wID to an player process and control it using the slave interface.
  • Html5 on Windows Mobile

    25 Nov 2010, 11:12
    0 Votes
    2 Posts
    4k Views
    "http://trac.webkit.org/wiki/QtWebKitSupportedStandards":http://trac.webkit.org/wiki/QtWebKitSupportedStandards I believe this support is already there... haven't tried though ...
  • Tuning input elements

    22 Nov 2010, 11:15
    0 Votes
    2 Posts
    2k Views
    For input elements, I would just tune the QStyle of the view.
  • WebKit + WindowsMobile

    19 Nov 2010, 09:57
    0 Votes
    2 Posts
    2k Views
    [quote author="XerXi" date="1290160654"] I would know if I can do the web-based application with Qt-WebKit and detect when connection fall down, then launch automatically, and transparent for the user, the client application made with Qt too. [/quote] Yep, it is possible. You might have to detect the disconnection yourself and propagate it to the web sandbox but that is not a big deal. Quite a few application for embedded are made just like that actually. [quote author="XerXi" date="1290160654"] Is it easy or could be expensive/hard? [/quote] It is easy if you know C++. The one thing I don't know is the state of the port for Windows Mobile, especially now that Microsoft is killing the product. I work mainly on Linux embedded. You should ask on the forum "Mobile and Embedded" if Windows Mobile support is still active.
  • Netscape NPAPI and iframe

    13 Nov 2010, 00:13
    0 Votes
    6 Posts
    5k Views
    [quote author="ndovp04" date="1290014931"]Sorry for not being cleared. During the NPAPI windowless plugin process which eventually the NPP_SetWindow(NPP instance, NPWindow* window) will be invoked (in this case WebKit backend) to pass to the client plugin the window object. I like to know the NPWindow* should be casted to which QT object? I can't find any documentation about this.[/quote] It looks like its null, and the rendering surface is passed via the expose events. You can check PluginViewQt.cpp to get the details, I don't know much about the implementation.
  • Download WebKit example [solved]

    17 Nov 2010, 09:11
    0 Votes
    7 Posts
    6k Views
    [quote author="Tobias Hunger" date="1289991069"]Download Qt sources. After unpacking the sources the example you are looking for should be in examples/webkit/imageanalyzer.[/quote] Thanks but I mean if it's possible to download example source from qt.gitorious.org without download all source. so I think it's not possible... :-)
  • QtWebKit plugins: Deletion and hiding

    29 Oct 2010, 11:51
    0 Votes
    4 Posts
    3k Views
    Here is a code example. @QObject *WebPage::createPlugin( const QString &classid, const QUrl &url, const QStringList &paramNames, const QStringList & paramValues) { QWebView *view = new QWebView(); view->load(QUrl("http://developer.qt.nokia.com/")); mainFrame()->addToJavaScriptWindowObject("renderer", view); return view; }@ With a complex workaround embedding QWebViews into iframes I get the QWebView not to be deleted, but now the QWebViews shown in first plane, so them overlap and I cannot view all the QWebViews, only the last inserted. I cannot refuse to use a QWebView because an iframe does not offer the isolation that I want. Thanks for paying attention on my problem :)
  • 0 Votes
    12 Posts
    6k Views
    [quote author="Benjamin Poulain" date="1289218305"]I also have no problem, you probably has missing extension on your X server. You can try the graphicssystem raster, it avoids lots of problems of X11.[/quote] Thanks... Works like a charm. I'll have to play around to see if this option causes any side-effects to other widgets.
  • Isolating an element of a QWebView

    7 Oct 2010, 19:24
    0 Votes
    11 Posts
    10k Views
    anyone have any idea how to get it to let me delete the width attribute? (i can't manage to get it to delete that attribute)
  • QWebView + Qt aware HTML

    24 Oct 2010, 22:57
    0 Votes
    9 Posts
    6k Views
    Yep, that is a good idea. That also avoid the double layout problem of my suggestion. As long as the CSS of the page does not use !important, that should do the trick.
  • Webkit, Disable selection

    19 Oct 2010, 03:17
    0 Votes
    2 Posts
    3k Views
    is this the same as "this thread":http://developer.qt.nokia.com/forums/viewthread/1267/?
  • 0 Votes
    8 Posts
    9k Views
    Alright tested out this morning on Mac OS X. Using Cocoa: flash does not run at all. As expected after reading your blog post. Using Carbon: it works fine in both QWebView / QGraphicsWebView. So it appears to be something specific to Windows (Vista ?). Using Carbon on HTML 5: I get the exact same issues than on Windows PC, so I guess Phonon behave consistently :). Anyone can try running a simple QGraphicsWebView + "this url":http://www.happyworm.com/jquery/jplayer/latest/demo-02-nativeSupportFalse.htm on a Windows platform to double check it does not work ? Thanks. B.A.
  • [Solved] QtWebKit Bridge

    15 Oct 2010, 15:58
    0 Votes
    4 Posts
    4k Views
    Doh! That was pretty basic mistake. :-( And yes, I have already run into the problem with the .pro file. Thanks for the quick responses, and I'll get with the program when it comes to formatting...
  • Drop down lists in QGraphicsWebView

    15 Oct 2010, 08:31
    0 Votes
    8 Posts
    23k Views
    [quote author="HaykG" date="1287317765"]Created the same bug in the webkit.org: "https://bugs.webkit.org/show_bug.cgi?id=47778":https://bugs.webkit.org/show_bug.cgi?id=47778[/quote] Please check the bug report, I asked you a question there. :) [quote author="HaykG" date="1287321858"]Also if possible could you please give some example/documentation of using that "platform plugin interface", because it would be the ideal case for me:)[/quote] There is not doc yet, this is still a feature in development. The idea is that platforms could provide some very specific implementations of features. In the case of combobox for example, you typically don't want them with touch interfaces, you want a fullscreen selection box for a better user interface (like on Maemo 5). You'll find the platform plugin interfaces here: "http://gitorious.org/webkit/webkit/blobs/master/WebKit/qt/Api/qwebkitplatformplugin.h":http://gitorious.org/webkit/webkit/blobs/master/WebKit/qt/Api/qwebkitplatformplugin.h