Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • [QWebView] MainFrame contains <br> in its Html when it's empty

    1
    0 Votes
    1 Posts
    770 Views
    No one has replied
  • Embed the TTF files without modification in PDF files

    1
    0 Votes
    1 Posts
    699 Views
    No one has replied
  • Issue displaying html's <select>

    3
    0 Votes
    3 Posts
    3k Views
    C
    Did you ever figure out a way around this? I'm running into the same situation when running Qt apps under FreeBSD.
  • No PATCH and DELETE request method support?

    2
    0 Votes
    2 Posts
    2k Views
    B
    "QtWebkit" uses "QNetWorkAccessManager", it support: @ enum Operation { HeadOperation = 1, GetOperation, PutOperation, PostOperation, DeleteOperation, CustomOperation, UnknownOperation = 0 }; @ Maybe something in your front-end request (maybe you use ajax). For DELETE, QNetWorkAccessManager work with this method: @QNetworkAccessManager::deleteResource@
  • How to round up the time to next hour?

    4
    0 Votes
    4 Posts
    3k Views
    sierdzioS
    @ QDateTime current = QDateTime::currentDateTime(); QTime time = current.time(); if (time.minute() != 0) { time.setHMS(time.hour() + 1, 0, 0, 0); current.setTime(time); } @
  • Connect to facebook & download data

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Closing this one then
  • Any documentation for QWebSpellChecker?

    2
    0 Votes
    2 Posts
    2k Views
    B
    +1
  • Strange behavior: QWebView with QCoreApplication and QApplication

    1
    0 Votes
    1 Posts
    675 Views
    No one has replied
  • QtWebEngine donot support mp3 audio

    3
    0 Votes
    3 Posts
    2k Views
    H
    i should need to recomplie qt with qtWebEngine??
  • How to response html5 events from qt5

    2
    0 Votes
    2 Posts
    974 Views
    p3c0P
    Hi, Welcome to devnet, You can with QWebview. Load the HTML page using "QWebview":http://qt-project.org/doc/qt-5/qwebview.html Make a C++ class derived from QObject which is available to the page using "addToJavaScriptWindowObject":http://qt-project.org/doc/qt-5/qwebframe.html#addToJavaScriptWindowObject. Add a Q_INVOKABLE function to this class. In HTML page you can create a JavaScript function which will be able to call the function in C++ class by using the exposed object's name. Call this JavaScript function on button click.
  • QtWebEngine donot support flash player

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Pseudo selector like :hover doesn't work in QwebView

    10
    0 Votes
    10 Posts
    3k Views
    SGaistS
    It uses a QGraphicsWebView rather than a QWebView but that shouldn't make a difference. What happens if you use loadUrl rather than loadFile ?
  • Qt5.4 MiniBrowser not executing properly

    2
    0 Votes
    2 Posts
    2k Views
    E
    After downloading and compiling Qt5.4-beta I got a little further but now it crashes shortly after starting like: @ ./MiniBrowser -platform eglfs <some IP> QEglFSImx6Hooks will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync. If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1 Unable to query physical screen size, defaulting to 100 dpi. To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters). WARNING: This project is using the experimental QML API extensions for QtWebKit and is therefore tied to a specific QtWebKit release. WARNING: The experimental API will change from version to version, or even be removed. You have been warned! Unable to query physical screen size, defaulting to 100 dpi. To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters). *** glibc detected *** ./MiniBrowser: realloc(): invalid pointer: 0x5e238000 *** Aborted (core dumped) @ It creates a core file called QSGRenderThread (that's my core pattern) and the stack trace is: @ #0 0x72820276 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6 #1 0x7282de82 in raise () from /lib/arm-linux-gnueabihf/libc.so.6 #2 0x7283025c in abort () from /lib/arm-linux-gnueabihf/libc.so.6 #3 0x728545c0 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6 #4 0x728545c0 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) @ Not much to see there so I figure maybe someone else has experienced similar crashes ? regards Einar
  • QWebView Woes

    8
    0 Votes
    8 Posts
    3k Views
    SGaistS
    To avoid having to copy the dlls each time you do a full rebuild of your application, you can also go to the Run part of the Project panel and modify the PATH environment variable adding the path to the OpenSSL dlls on the front
  • QtWebEngine and QPainter

    1
    0 Votes
    1 Posts
    998 Views
    No one has replied
  • Qt 5.3.2 QWebView linux render/font issue

    1
    0 Votes
    1 Posts
    848 Views
    No one has replied
  • No text zooming for printing

    1
    0 Votes
    1 Posts
    607 Views
    No one has replied
  • Qt bridge: how to receive JS objects

    1
    0 Votes
    1 Posts
    711 Views
    No one has replied
  • QT5 QWebView openlink head info lost

    2
    0 Votes
    2 Posts
    833 Views
    raven-worxR
    taken from the Qt docs: @ QWebElement document = frame->documentElement(); /* Assume that the document has the following structure: &lt;form name="myform" action="submit_form.asp" method="get"&gt; &lt;input type="text" name="myfield"&gt; &lt;input type="submit" value="Submit"&gt; &lt;/form&gt; */ QWebElement button = document.findFirst("input[type=submit]"); button.evaluateJavaScript("this.click()"); @ Somehow you need to find your desired element with a selector with findFirst()
  • How can i change the cursor style of the qwebview's scrollbar?

    2
    0 Votes
    2 Posts
    2k Views
    raven-worxR
    the scrollbars are not really widgets, instead they are painted by webkit itself. the only way i can think of is to use webkit specific CSS. See "this":http://davidwalsh.name/custom-scrollbars You can set the stylesheet via QWebSettings::setUserStyleSheetUrl() If you don't want to provide it accessible via an url you need to pass an base64 encoded url data.