Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • 0 Votes
    4 Posts
    4k Views
    T

    I am sure you will find some using your search engine of choice.

  • 0 Votes
    2 Posts
    2k Views
    W

    add an listener on image.so
    @
    <html>
    <head></head>
    function changePic(){
    document.getElementById("somePic").src="http://qt.nokia.com/images/template/icon-qt-in-a-box";
    }
    function showSrc(img){
    alert(img.src);
    }
    <body>

    some text<br></br> &lt;img id="somePic" title="about the pic" src="" onload="showSrc(this&#41;"&gt;&lt;/img&gt; &lt;/body&gt;

    </html>

    @

  • 0 Votes
    2 Posts
    5k Views
    P

    additional information:
    the navigator.userAgent is German too:
    "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE) AppleWebKit/533.3 (KHTML, like Gecko) myqwebview/1.0.0 Safari/533.3"

    So, the .exe knows that the locale should be German...

  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • QWebPage in a different thread

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    D

    QWebPage uses GUI elements. It must live in the GUI thread.

    Please close this as a duplicate of http://developer.qt.nokia.com/forums/viewthread/6429/

  • 0 Votes
    2 Posts
    3k Views
    F

    I assume you either changed the name of the class on your implementation or you mistyped on your post (the class on the tutorial is called just CookieJar).

    I did not check the tutorial but if I have to guess you are setting the cookie jar to a different instance of the networkmanager than the QWebPage is using.

    If that is not the case, please post more of your code so we can help you.

  • Simple webkit problem

    2
    0 Votes
    2 Posts
    2k Views
    2

    I just realized what's the problem. it seems that if no <head> tag is created webkit creates one automatically.

    Not sure if this is an error or not. If it's not then there is a documentation error on this http://doc.qt.nokia.com/4.7/qwebelement.html from where I get the example.

    Hope this helps.

  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • QGraphicsWebView and Flash performance issue

    3
    0 Votes
    3 Posts
    4k Views
    B

    I guess we'll have to wait for Qt 4.8 and QtWebkit 2.2.

    B.A.

  • Error while loading shared libraries

    5
    0 Votes
    5 Posts
    5k Views
    N

    okay buddy no problem.. thanks for the discussion I will be continued to resolve this error...

  • QML WebView, plugins and content type

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QtWebKit and WebKit2

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Multimedia support in QtWebKit

    4
    0 Votes
    4 Posts
    3k Views
    S

    They can’t even if they wanted to do such change at this point; maybe in Qt 5, and I wouldn’t even see total strange thing, but now changing it would mean breaking ABI, and that’s not the way to go.

    So qt-webkit relies on phonon and qt-multimedia will arrive in 4.8 AFAIK which can be used for about everything else. qt-multimedia is also inside above mentioned qt-mobility package. For Qt 5, who knows what will future bring to us :)

  • Capturing webkit screenshot & redraw events

    4
    0 Votes
    4 Posts
    4k Views
    D

    You don't get "repaint events" for every frame, but for every time a dirty area needs to be updated. In code: it's the QWebPage::repaintRequested signal that causes an update() in a QWebView; you can connect that signal to a custom slot to update your drawing (that's what I did in WebkitCaca).

    Notice that the QWebView behaviour is 1) asynchronous due to the update() call, which posts a paint event in the event queue, and 2) paint events get compressed by Qt, resulting in less calls to paintEvent() (w.r.t. the number of times repaintRequested was emitted).

    If it's possible to modify the script that does the animation, I'd suggest to use PhantomJS (or code yourself an object that does something like that) to render the page to an image file at every step of the animation.

  • Control embedded widgets through jQuery

    4
    0 Votes
    4 Posts
    3k Views
    P

    You should use QTimer :), in jQuery.animate(...) or all these UI functions works on timers :) ...

  • Copy and Paste Images from PDF

    2
    0 Votes
    2 Posts
    3k Views
    R

    I have implemented something similar in my last project.
    you need to get the painter from the Printer and then draw the images using that painter on to the printer.

    The main thing in this need to be care is that every printer has different pixel size so you must have a use case to handle that.

  • Qt Webkit static

    4
    0 Votes
    4 Posts
    9k Views
    I

    Thanks for your answers, I do understand about license and all.. I know I would have to release the source code of my aplications, that's not a problem for me, just wanted to know if I could use the Webkit, I see I can't, I'll start developing with dynamic linking and see what happens, I'm really new to Qt and I am using SQL plugin (statically) I couldn't compile mysql support in Windows so I changed to ODBC..

  • 0 Votes
    5 Posts
    3k Views
    G

    [quote author="huyanke" date="1305248922"]hi,

    One thing I am not very clear is that. In QtWebKit, there is a method QWebFrame->evaluateJavaScript() ,which can execute javascript. I think the function should be provided by WebKit. But I just cannot find the corresponding API in WebKit...
    [/quote]

    If you are about understanding the inner workings of Qt Webkit (what's my suspicion after the two other threads about "QNetworkRequest utilization":http://developer.qt.nokia.com/forums/viewthread/5826/ and "the http connecting module":http://developer.qt.nokia.com/forums/viewthread/5816/), then you would be better asking on the Qt Webkit devlopers' mailing list(s). Most of the guys here are just using Qt Webkit and are not deeply interested in its inner workings, especially not in the original Webkit API.

  • Does WebKit have http connecting module?

    6
    0 Votes
    6 Posts
    4k Views
    H

    hi, Volker,

    Thank you for your help!

    My start point is WebKit is used in many popular browsers like Safari, Chrome, android, and also QtWebKit based browsers like Arora, QtWeb,etc.

    An interesting is that when you are setting a proxy in Safrari or Chome, it makes a system proxy setting, meaning other browsers will also use this setting. But when you are setting a proxy in Arora , or QtWeb, it 's a process level setting.

    Thank you for clarifying a lot, and now I know WebKit doesn't implement http request itself, and QtWebKit make the setting proxy function through QNetwork module.

  • 0 Votes
    8 Posts
    4k Views
    M

    I think you may be making some wrong assumptions about the functionality of QApplication. Its job isn't to dispatch native system calls itself. It, among other things, handles the application's main event loop which allows a lot of the messaging and interaction among Qt's classes.

    [quote author="huyanke" date="1305136760"]By the way, mlong, how do you make QNetworkAccessManager linked to its doc?

    [/quote]

    I use the link button at the top of the "Post a reply" box and paste in the URL to the appropriate document. Nothing magic.

    Edit: Combined 2 thoughts to keep from opening another post.