Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • [Trying other solutions]XMLHttpRequest

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QtWebKit 4.8 Flash does not work properly on Mac

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Highlight a selected text

    5
    0 Votes
    5 Posts
    3k Views
    D
    yes, we tried and it's not getting highlighted.
  • Make a map navigable

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Differences in Browser demo and fancybrowser

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How can i reimplement the shouldInterruptJavaScript() in Qt (C++)?

    2
    0 Votes
    2 Posts
    2k Views
    I
    Look at "this ":http://developer.qt.nokia.com/forums/viewthread/13921/post: I faced a similar problem and AcerExtension published some code that could be usefull for you. In my case the issue was more complicated to resolve because I used DLLs that pointed a QWebView passed from an EXE. In such case, the override must be done in the EXE and doing so in the DLL is more complicated.
  • Show pdf with qtwebkit

    3
    0 Votes
    3 Posts
    6k Views
    1
    Thanks a lot for your reply. I am not a qt dev... so digging to deep into the stuff is not really to way to go for me... I am looking for info to pass on to the devs... I found "this post":http://developer.qt.nokia.com/forums/viewthread/14055/ and it looks like it simply does not work. As I've written in reply, I get the same results as tomleitner: it works in WinXP but doesn't in Ubuntu 10.04. And "here":http://www.qtforum.de/forum/viewtopic.php?t=12009 (sorry in German) they say it just works with the Gecko rendering engine...
  • New To Qt

    4
    0 Votes
    4 Posts
    2k Views
    T
    http://developer.qt.nokia.com/doc/qt-4.8/qtwebkit.html bq. QtWebKit provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application.
  • Enabling debugging messages in Qt webkit

    3
    0 Votes
    3 Posts
    7k Views
    M
    From the QtWebKit docs... bq. Building the QtWebKit module with debugging symbols is problematic on many platforms due to the size of the WebKit engine. We recommend building the module only in release mode for embedded platforms. Currently QtWebKit will always be compiled without debugging symbols when using gcc. Take a look at the last lines of src/3rdparty/webkit/WebCore/WebCore.pro if you need to change this.
  • The script on this page appears to have a problem

    18
    0 Votes
    18 Posts
    15k Views
    I
    Finally I discovered what was causing the issue. The problem is the way I use QWebView. In my project I have a main application (exe) that creates a QWebView widget. In order to interact with it I connect javaScriptWindowObjectCleared with populateJavaScriptWindowObject @connect(ui.webView->page()->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()),this, SLOT(populateJavaScriptWindowObject())); @ In the html side I call my slot using this way @ a href=""onClick=" javaskript:setCommand('INF');MyEXE.submit()">ELEMENTOS</a> @ (Note: I deliberate misspelled the <a> & javascript tag in this post to avoid errors in the preview) So whenever the user clicks in this option my function MyExe.submit() is called in the EXE side. This function calls a DLL and passes a pointer to the QWebView but before doing that I disconnect the signal in the EXE @ void MyEXE::submit() { ... QLibrary myLib("C:\Users\mahg\Documents\Qt\DLL\debug\DLL_Test2.dll"); typedef int (MyDLL)(Ui::Form, int); MyDLL myDLL = (MyDLL) myLib.resolve("Dll"); if (myDLL) { ... disconnect(ui.webView->page()->mainFrame(),0,0,0); int i=myDLL(&ui); ... } ... } @ Note: the original code I wrote to disconnect was: @ disconnect(ui.webView->page()->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()),this, SLOT(populateJavaScriptWindowObject())); @ Then, the DLL connects the signal javaScriptWindowObjectCleared with its own populateJavaScriptWindowObject and interacts with the user through the QWebView. So far everything worked fine but there is a problem with the ShouldInterruptJavaScript. This function is triggered if the JavaScript code takes long time, but I discovered that the trigger doesn't occurs in the DLL but in the EXE. This only occurs if I call the DLL inside the function MyEXE::submit(). If I call it outside this function everything works fine. I guess Qt can't disconnect theses slots if we are still processing some code inside the slot called from the html Is this a normal behavior? I can override the ShouldInterruptJavaScript in the main (EXE) code but this is not fair for me. If there is no workaround for this I could try to call the DLL outside the MyEXE::submit()
  • How to write some text on QWebView

    6
    0 Votes
    6 Posts
    3k Views
    A
    Start timer for 40ms, in timeout slot get DC from MainWindow, get rect of flash widget and draw what you need... It was working for me under WindowsMobile, should work in Windows to... on linux you can also draw directly in frame buffer... Havn't used QGraphicsWebview, but "Graphics" do they drawing in other way as simple QWidgets?! or not... it's just a guess...
  • Write all data of an NetworkReply

    9
    0 Votes
    9 Posts
    4k Views
    G
    You can always imitate what that script does and modify your own requests. Unfortunately there's nothing else to add here. Self modifying code usually tends to be tricky to analyze.
  • [SOLVED]Completing forms and submit buttons

    6
    0 Votes
    6 Posts
    5k Views
    M
    Modified the code and now I can login.A link to a more detailed manual for the webkit and QtNetwork or for a book that explains this would be a huge help now.Thank you for helping me!
  • QtWebKit mixed https / http pages

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QWebView as child widget. Page position problem.

    2
    0 Votes
    2 Posts
    2k Views
    S
    I updated the libraries and the problem was gone.
  • Calling Qapplication.exec multiple times in loop is possible, if yes how?

    4
    0 Votes
    4 Posts
    4k Views
    A
    Actually I am not using the simple for loop. I have a simple dynamic java project in which i have included the webkit project as a jar, which renders the html page. So when the request comes to the servlet with url, the servlet calls the webkit application with the url. In webkit application, the Qapplication initalize, exec and quit are called once only and it opens the url. When the request comes first time, everything goes well. But when the request comes second time, it doesn't come up. Thats why i have made simple to ask... But basically initialze, exec and quit is called by one request after another request Please suggest something?
  • [SOLVED] Content Search in QtWebKit

    2
    0 Votes
    2 Posts
    2k Views
    J
    You have function "QWebPage::findText()":http://developer.qt.nokia.com/doc/qt-4.8/qwebpage.html#findText. GUI you'll have to do by yourself.
  • EvaluateJavaScript only works in the main thread

    4
    0 Votes
    4 Posts
    3k Views
    M
    It's only my strange app or in Qt 4.7 evaluateJavascript from a non.main thread was working? It should be of very help to have a nice and pretty workaround...
  • Problem in opening embedded web page link

    12
    0 Votes
    12 Posts
    7k Views
    A
    Unfortunately I encountered one more problem. I need to detect exactly that URL will open new window OR new tab. Overridden of CreateWindow() informs about opening of URL in new window/tab. How to differentiate between these two.
  • QtWebkit multithreading

    14
    0 Votes
    14 Posts
    9k Views
    A
    "You can only have one Q(Core)Application instance. You might delete the instance and create a new but … there can be only one!" How to do this? please help