Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • QWebPage::acceptNavigationRequest and POST data

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • DOMWindow within a QWebFrame

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • DOM Ready

    2
    0 Votes
    2 Posts
    2k Views
    B
    I created a solution using evaluateJavaScript. mainwindow.h: @ private slots: void loadFinished(bool); @ mainwindow.cpp: @ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { // after ui->setupUi(this); connect(ui->webView, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished(bool))); } void MainWindow::loadFinished(bool) { ui->webView->page()->mainFrame()->evaluateJavaScript("function DOMReady(){if(/complete/.test(document.readyState)){return true;}return false;}"); QVariant domready = ui->webView->page()->mainFrame()->evaluateJavaScript("DOMReady();"); qDebug() << domready; } @ There is another easier solution? POST PLEASE!
  • Accessing QObjects from javascript using Qt5 - SOLVED

    3
    0 Votes
    3 Posts
    2k Views
    G
    Please add - solved to topic :)
  • Sending key press events to the browser

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Webkit automatic

    2
    0 Votes
    2 Posts
    1k Views
    D
    If i clearly understand you, you want to fill element in html code by c++ source code? If yes, you can ,to that by EvaluateJavaScript in qwebview, for example if you have element which id is macid and function which return value , which you fill this element name getMacAdres() you can do this evaluateJavaScript("macid.value='"+WebApi.getMacAddress()+"'")
  • QWebView::findText plus Unicode's Combining Diacritical Marks

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • HTML Editor works in major browsers, but not in QtWebKit

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Font Problem WebKit Qt 4.7.4 Windows

    1
    0 Votes
    1 Posts
    885 Views
    No one has replied
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to subclass QWebView qml plugin?

    2
    0 Votes
    2 Posts
    2k Views
    P
    @ WebView: public QGraphicsWebView { //... }; @
  • QtNetworkAccessmanager download file created by cgi

    15
    0 Votes
    15 Posts
    5k Views
    M
    I can get some of the files and not others. Is there a way to determine a file when it open a tab and send the file through that.
  • A HTML5 & jQuery VISUAL Editor with QtWebkit !

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • How build qtwebkit with ICU ?

    4
    0 Votes
    4 Posts
    3k Views
    sierdzioS
    I don't know. It was just a suggestion.
  • How to add a text encoding alias ?

    3
    0 Votes
    3 Posts
    2k Views
    Y
    I've read a part of code for encoding. In my fedora package, it uses Qt unicode. I've a little bit modified and made it parse x-sjis with Shift_JIS. It works well. but I don't want to edit QtWebKit code itself, I want to control it from my code. Till now I couldn't find a way. Do you have anything helpful... ??
  • Best Practices to expose a WebKit module in Qt?

    1
    0 Votes
    1 Posts
    882 Views
    No one has replied
  • Using QtCreator to build/run QtTestBrowser

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Webpages not loading

    2
    0 Votes
    2 Posts
    2k Views
    N
    It was a proxy issue and by setting "http_proxy" env varilabe, i was able to access the internet.
  • 0 Votes
    2 Posts
    9k Views
    G
    I found a way to solve my problem, but I am not sure if this is the perfect one. After sending message over DBus I am creating internal event loop, like this @ QEventLoop loop; QTimer timer; timer.setSingleShot(true); connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit())); connect(this, SIGNAL(replayReceived()), &loop, SLOT(quit())); timer.start(5000); loop.exec(); if (timer.isActive) //replay received before timer else //timer elapsed, no replay from client @ Such construction allows process to continue processing of main event loop and to keep certain method in wait condition realized by event loop. Now if user does or dose not replay I can handle it in if condition.
  • How to suppress javascript error/warning popup message window

    2
    0 Votes
    2 Posts
    2k Views
    A
    You can subclass [[Doc:QWebPage]] and reimplement the javaScriptAlert() method to suppress the message boxes triggered by alert().