Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • QWebFrame original HTML for WYSIWYG editor

    10
    0 Votes
    10 Posts
    7k Views
    L
    How can I acces to de CSS data from the QWebView. I mean, I know that I can edit the styles using the QInspector, but I want to save the editions after editing with the inspector. How could I do that?
  • Implement word selection under cursor on right mouse click

    4
    0 Votes
    4 Posts
    3k Views
    G
    Any one manage or have an idea how to solve this problem? Or similar how to get text that is under cursor?
  • [solved] QtWebKit - how to find name of radio button

    6
    0 Votes
    6 Posts
    3k Views
    G
    I also implemented hard parser in following way. But I think it is time consuming operation, as there is a lot of operation related to QString. @ a_oWebElement - input element QString CClass::getWebElementInnerText(QWebElement & a_oWebElement) { QString strRetVal; //find text visible on WebPage (need to be stripped from any white space characters QString text = a_oWebElement.toOuterXml(); // qDebug() << text; QString strHtml = a_oWebElement.webFrame()->toHtml(); int position = strHtml.indexOf(text, Qt::CaseInsensitive); int tagPosition = strHtml.indexOf("<", (position + text.size()), Qt::CaseInsensitive); for (int j = (position + text.size()); j < tagPosition; ++j) strRetVal.append(strHtml.at(j)); strRetVal = strRetVal.trimmed(); // qDebug() << "innerText - " << innerText << "position" << position << "tagPosition" << tagPosition; return strRetVal; } @
  • [Solved] Using imageformat plugins with QTWebkit on an Embedded platform

    3
    0 Votes
    3 Posts
    3k Views
    M
    Great! Thanks for the information on how it was solved. Please be sure and edit your initial post to add [Solved] to the thread title. Thanks!
  • How webkit does attachment

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How to Run Qt built Application in Server

    5
    0 Votes
    5 Posts
    2k Views
    A
    Proceed with this steps: [quote author="RaubTieR" date="1346417400"]* Application should be built for server's OS You should have Qt libraries of your version available for application on the server (possibly bringing them together with app from where you compiled it) You should have permission to run things on server Run as usual[/quote]
  • Any ways for QtWebKit playing HTML5 video without installing flash player

    14
    0 Votes
    14 Posts
    14k Views
    P
    So there you go. HTML 5 vids are not "possible" for now. Maybe using platform-depend core to play videos, just write Qt wrapper for iOS - Safari (WebKit Core) Android - Chrome (WebKit Core) Windows (Phone) - MSIE - Trident Core
  • Webkit webworker cross domain issues ??

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Linking against external QtWebKit

    2
    0 Votes
    2 Posts
    1k Views
    A
    You have 2 QtWebKit libraries? add following to your .pro file: @ LIBS += /path/to/your/qtwebkit.so @ if you have only one qtwebkit lib, then the right syntax would be: @ LIBS += -L/path/where/qtwebkit/is LIBS += -lQtWebKit @
  • JQuery doesn't works when the page is loaded from resource

    6
    0 Votes
    6 Posts
    4k Views
    M
    Currently I use a workaround: I save the html code to a file and then use QWebView::load to open it. However it comes with the price of speed.
  • Qt webkit webworker support ??

    2
    0 Votes
    2 Posts
    2k Views
    A
    Yes, Qt webkit supports web workers (have tested with 4.8.2). which documentation? web worker is an javascript which runs in background... nothing more... You can communicate with them with help of "evaluateJavaScript":http://qt-project.org/doc/qt-4.8/qwebframe.html#evaluateJavaScript or you can even bind objects into javascript space "addToJavaScriptWindowObject":http://qt-project.org/doc/qt-4.8/qwebframe.html#addToJavaScriptWindowObject If it is what you need.
  • QMouseEvent and Qt WebKit

    8
    0 Votes
    8 Posts
    5k Views
    A
    If you "record" your activity, username & password which you have typed on webpage will be in the data section of POST request. But I see, you can't get data section from QNetworkRequest, so you should take the second method with QNAM subclassing, there you will get QNetworkRequest and the data, but you will need to filter the image requets and etc by yourself... or maybe you can somehow use booth methods to filter request and get data section....
  • Set JavaScript environment variables - Set Screen Resolution

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [SOLVED]QtWebkit: facebook authentification

    6
    0 Votes
    6 Posts
    4k Views
    L
    Under OS X or most Linux distros you could use: #include </usr/include/openssl/name_of_header_file_you_want_to_include.h> you could also use the 2nd syntax but the module syntax above is better when bringing third party classes into your project #include "/usr/include/openssl/name_of_header_file_you_want_to_include.h" Cheers, Ludovic Vignals
  • [Solved] Https page works in Windows but not in Linux

    13
    0 Votes
    13 Posts
    11k Views
    P
    Finally I got it to work! :-) I don't quite understand it completely yet, but I do understand that openssl on 12.04 seems to be really messy after all the bug reports I've read. But anyway, I simply had to replace: @ sslConfig.setProtocol( QSsl::TlsV1 ); @ with @ sslConfig.setProtocol( QSsl::SslV3 ); @ then at least for this specific site it works and for now this is good enough for me. Thanks again AcerExtensa! Regards Peter
  • Qt5 Webkit build issue

    2
    0 Votes
    2 Posts
    3k Views
    sierdzioS
    Comment those parts out? The best solution, that would help other people too, is to file a bug report at "JIRA":https://bugreports.qt-project.org/secure/Dashboard.jspa. You can also ask on qt-interest mailing list.
  • Setting QObject ownship for QWebFrame javascript

    1
    0 Votes
    1 Posts
    961 Views
    No one has replied
  • Send get request and unknown file name returns

    5
    0 Votes
    5 Posts
    2k Views
    M
    No that I got working if I know the name and where it is at I was able to ask for it. So this is a continuation of that
  • Adding a mimetype to QWebView

    2
    0 Votes
    2 Posts
    2k Views
    A
    maybe you can catch it with "unsupportedContent signal":http://qt-project.org/doc/qt-4.8/qwebpage.html#unsupportedContent ? Can you provide internet link to test this issue?
  • Trouble with MathJax rendering - inconsistent and poor results

    4
    0 Votes
    4 Posts
    4k Views
    R
    To get setHtml working I need to use @webview.setHtml(html, baseUrl=QUrl("http://cdn.mathjax.org/mathjax/latest/MathJax.js")@ on Linux (Debian/testing & Ubuntu 12.04). The baseUrl is also needed for a local installation of MathJax. I don't understand why. Because with setUrl, or on Windows with setHtml, no baseUrl is needed. Odd.