Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • Proxy client accesing to web

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    EddyE
    Please don't double post. You already asked "this":https://developer.qt.nokia.com/forums/viewthread/11472/. Thread closed
  • Flash is working too slow using QGraphicsWebView

    15
    0 Votes
    15 Posts
    10k Views
    Q
    I have also the same issue in a webview in qml (windows) .. It's far slower than in wekbit (I render my qml in a qglwidget as viewport). Is there any workaround : I have tryed 4.8RC1 but it's the same issue.
  • [Solved] QNetworkAccessManager

    9
    0 Votes
    9 Posts
    4k Views
    L
    You're welcome. Feel free to edit the thread title to "[Solved] ..." thus indicating that this topic has been solved and that there is a solution inside.
  • [Solved] Error while compiling QtWebKit 2.2 with 3D canvas

    3
    0 Votes
    3 Posts
    4k Views
    A
    Thanks for reporting back with your solution. Could you please mark your topic as solved by editing the title and adding a [Solved] tag to it? You can do that be clicking the small edit link next to the first posting in the topic.
  • Issues with the new QtWebKit 2.2

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Problem about obtain text node with QWebElement

    7
    0 Votes
    7 Posts
    7k Views
    N
    Hi, you could see href attribute with: QWebElement.attribute('href') that shows 'http://www.domain.com"
  • 0 Votes
    7 Posts
    6k Views
    G
    Thank you very much,I have got the reason.That's my fault to wrap html file in @-tags,and it seems that the html token can not be write in post text.I will report this to Beta Testing Forum,Thank you very much! [quote author="Volker" date="1320499603"]Something really strange is going on here, as your other comments make it through. I suggest you test this issue in the "Beta Testing Forum":http://developer.qt.nokia.com/forums/viewforum/5/. Just open a new thread there, stating that you test an issue. I now would post just the first sentence, then add new comments containing just one more paragraph each, until the error shows up again, then remove that paragraph, and add sentence for sentence of that paragraph, then word for word just to boil down at which excact place the error occurs. Maybe this can track down the cause. Also, it can be that you discovered a subtle error in the forums software, as that usually rejects empty posts! The Beta Testing forum is the right place for that, you don't need to bother about "polluting" something there. [/quote]
  • Fitting the page content to the QWebView widget

    5
    0 Votes
    5 Posts
    7k Views
    K
    But if the pages content is to big to fit into your WebView widget you will have a scrollbar. Maybe you can try to have different StyleSheet files for different widget sizes. Then you could define for example the font size accordingly and try to shrink the content this way. Also I don't think this will work as a general solution for content loaded from outside sources as different StyleSheets will affect the layout of these pages. Have you tried "setZoomFactor(qreal factor)":http://developer.qt.nokia.com/doc/qt-4.7/qwebview.html#id-b17c838f-b378-4b3d-9eef-fd6435789f6a or "setViewportSize":http://developer.qt.nokia.com/doc/qt-4.7/qwebpage.html#id-cd982469-654f-4acb-bee1-af672bba8f69. A combination of "contentSize":http://developer.qt.nokia.com/doc/qt-4.7/qwebframe.html#id-b35b7b37-f485-40c2-9c6e-e35369c8f043 and the size of the WebView widget to calculate the zoomFactor might do the trick. But I'm just guessing.
  • QtWebKit Application Cache: does it work?

    2
    0 Votes
    2 Posts
    6k Views
    N
    Ok, so I figured out the problem. I didn't enable offline web application cache. I assumed since it was supported it was enabled by default, but I guess I wasn't reading the documentation carefully enough that states it disabled by default... oops! So basically doing something like this enables it: @ view = new QWebView(this); view->page()->settings()->enablePersistentStorage("put_you_path_to_local_storage_here"); @ And that did. After recompiling my app loaded all the way through perfect. I did notice that it doesn't seem to be calling the "progress" event on the event listener for window.applicatinoCache, but oh well, that's not so ciritical. Hope that helps someone... but then you're probably all better at reading the documentation ;). Nate
  • FB Comments inside an Qwebview not working why???

    5
    0 Votes
    5 Posts
    3k Views
    D
    Sorry Andre ,I put this code: please ignore sscript> that is script, becuase when i put script it replace my code with [remove][remove]: @ ui->webView->setHtml("<div id="fb-root"></div><sscript src="http://connect.facebook.net/en_US/all.js#xfbml=1"></sscript><fb:comments href="example.com" num_posts="2" width="500"></fb:comments>"); @ and its working fine on html page when running on web browser. html: @ <div id="fb-root"></div> <sscript src="http://connect.facebook.net/en_US/all.js#xfbml=1"></sscript> <fb:comments href="example.com" num_posts="2" width="500"></fb:comments> @
  • 0 Votes
    4 Posts
    4k Views
    G
    What about your means "fake the agent"? thanks [quote author="Lukas Geyer" date="1319817179"]Have you tried to stick to WebKit and just fake the user agent?[/quote]
  • Does the Qtwebkit in Qt for embedded use minimal configuration?

    2
    0 Votes
    2 Posts
    2k Views
    M
    yes it has minimal requirements on embedded platforms. i don't think you be able to remove its features by configuration.
  • QtWebKit html form file upload

    6
    0 Votes
    6 Posts
    5k Views
    P
    this question would help me a lot as well, if someone knows how to set a file in a input field and then submit it to the server would be nice.
  • QtWebkit vs. webkit

    6
    0 Votes
    6 Posts
    5k Views
    D
    @atena_2019: Thanks, But I want to remove some features at compiling time to make webkit a small size.
  • How to capture HTML document mouse events?

    3
    0 Votes
    3 Posts
    4k Views
    V
    Thank you for your prompt respond. That is exactly what I need.
  • Problems in Implementing Save Feature in Javascript app using Qt

    21
    0 Votes
    21 Posts
    12k Views
    R
    I see this is a very old post but would have liked this solution shown for me when I found this post. JavaScript does has problems taking string with line breaks in it. In my case (read kml file stored on local hard drive, pass the string to JavaScript, and use the Google Earth extensions library to parse and display the kml file) the line breaks did not need to be conserved in a file load. To solve this I used: @ QTextStream in(&file); QString wholeFile; QString line = in.readLine(); wholeFile+=line; while (!line.isNull()) { line = in.readLine(); wholeFile+=line; } @ An alternative method: @ QByteArray line = file.readAll(); @ does not play well with JavaScript.
  • QWebView doesn't show image

    7
    0 Votes
    7 Posts
    7k Views
    H
    I have the same problem on Windows XP Embedded. Thank u so much! ^^
  • Subclass of QWebView doesn’t detect/react to Hyperlink Clicks

    2
    0 Votes
    2 Posts
    4k Views
    F
    Hey mate, For this to work you must first set the way links need to be handled. Default is that all links will be handled by QWebPage even if you made your own function. This is done with page().setLinkDelegationPolicy(). Secondly your now overloading the signal that is send when someone clicks a link and not the slot. To get this to work you need to connect your own slot to the linkClicked signal. So try: @class BrowserWindow( PySide.QtWebKit.QWebView ): # Class Variables: def __init__( self, _parent ): """ Constructor: """ super(BrowserWindow, self).__init__() self.page().setLinkDelegationPolicy(PySide.QtWebKit.QWebPage.DelegateAllLinks) self.linkClicked.connect(self.linkIsClicked) def linkIsClicked(self, arg__1): """ Post: """ #print("LINK CLICKED") #text, ok = QtGui.QInputDialog.getText(self, 'Input Dialog', # 'Enter your name:') self.load("http://yahoo.com")@ With setLinkDelegationPolicy you have three options: QWebPage.DontDelegateLinks -> No links are delegated. Instead, QWebPage tries to handle them all. QWebPage.DelegateExternalLinks -> When activating links that point to documents not stored on the local filesystem or an equivalent - such as the Qt resource system - then linkClicked() is emitted. QWebPage.DelegateAllLinks -> Whenever a link is activated the linkClicked() signal is emitted. Hope this helps :).
  • Local storage in Qt HTML5 application.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Problem with BusyIndicator in embedded web view

    2
    0 Votes
    2 Posts
    2k Views
    F
    Hello, i had the same problem. It seems something happens when setting the height and width parameters. I removed them and the failure messages had disappeared. For a magical reason the size of the indicator turned out to be exactly what i wanted so i didn't have any problem. But indeed if someone wants to set the size what should he do? Work only with the anchors? EDIT: forgot to mention that my BusyIndicator was in a simple Rectangle contained in a Flickable container so i suppose it has nothing to do with the WebView.