Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • QtWebkit can not display image in case of local network path

    11
    0 Votes
    11 Posts
    9k Views
    J
    Hi! I can see your problem now. It took me quite some time to find to problem. It's in the qrc files. If you load file straight from the disk, everything works perfectly. If you take it from qrc, it will look for images ( also for the network images) in resources. I don't know why. Load html to a string and then use setHtml() method, or load files from disk directly. All of your above examples work. And as you already said, it seems to be a bug. And its cases like this it doesn't matter which IDE you use. I don't have VS 2010, I have only 2012. I'd kill to get Qt plugin for it. But I'm stuck with Qt Creator. Next time, please use wrap your code in "@" tags, for readability. Regards, Jake
  • QtWebkit 4.8 performance

    8
    0 Votes
    8 Posts
    6k Views
    D
    But see here I'm using Qt 4.8 and I'm getting a little bit better performances. "Link":https://dl.dropbox.com/u/55262925/Html5.png
  • HTML5 video support with QWebView on Raspbian (Raspberry Pi board)

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • QWebview printing - STUCK

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Unable to compile for BlackBerry 10 Target- Windows and Linux Hosts

    3
    0 Votes
    3 Posts
    3k Views
    K
    Anyone? Why is LLINT file generation disabled in makefile for Blackberry target, but the missing files are still being referenced in compiled source code? What's the way to fix that?
  • [solved] How to use a public Qwebelement variable

    9
    0 Votes
    9 Posts
    4k Views
    J
    Just edit your first post and add [SOLVED] in front of the title.
  • PyQt4: QWebView: Custom context menu

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QtWebkit does not support mpeg4?

    3
    0 Votes
    3 Posts
    2k Views
    L
    Thank you for an answer. I did not know how to enable the concrete. I just use something like this but I found a sample? This sample was not playing mpeg4 way. I'm glad if you give me advice on how to use the function. @ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true); QWebSettings::globalSettings()->setAttribute(QWebSettings::AutoLoadImages, true); QWebSettings::globalSettings()->setAttribute(QWebSettings::JavascriptEnabled, true); QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true); QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, true); QWebSettings::globalSettings()->setAttribute(QWebSettings::LocalStorageEnabled, true); ui->webView->load(QUrl("http://")); } @ Is it like form or under? Did not succeed to build the form below. @ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); ui->webView->setAttribute(QWebSettings::PluginsEnabled, true); ui->webView->load(QUrl("http://")); } @
  • QWebView and Java Support!

    6
    0 Votes
    6 Posts
    3k Views
    G
    Maybe you could ask your question on Qt "mailing list":http://lists.qt.nokia.com/mailman/listinfo If you find answer please put it also here.
  • How can i make image snapshot of web page ?

    3
    0 Votes
    3 Posts
    2k Views
    M
    By Using, mainFrame->render function, you can get screenshot of the entire web page
  • [Solved] QWebkit is not able to detect NPAPI plugin

    8
    0 Votes
    8 Posts
    5k Views
    M
    [quote author="rcari" date="1350394833"]Take a look at "this":http://doc.qt.digia.com/latest/qtwebkit.html#netscape-plugin-support. You should also enable plugins in "QWebSettings":http://doc.qt.digia.com/latest/qwebsettings.html#WebAttribute-enum and the attribute QWebSettings::PluginsEnabled[/quote] This is very useful.. Thanks a lot...
  • QWebView printing cut text in half

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Cookies not working

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QWebKit problem with google maps api v3

    5
    0 Votes
    5 Posts
    5k Views
    J
    Working with qt 4.8.1 under windows too Thanks I did read lots of stuff before it worked :D
  • QWebFrame load() function slows down main GUI thread

    3
    0 Votes
    3 Posts
    2k Views
    P
    Plugins are disabled and Java is disabled. I'm not sure why this is slowing down the main GUI thread. I came across this forum thread that explains a similar issue with QNetworkAccessManager: http://qt-project.org/forums/viewthread/711 The original poster of this forum thread says that he was experiencing delays in the GUI thread with non-responsiveness from the mouse or keyboard on the GUI for about 1.5 seconds. I tried to implement his solution into my code, but I couldn't figure out how to set the QNetworkAccessManager from one thread on a QWebPage on the GUI thread. I've even tried overriding the QNetworkAccessManager::createRequest() method in a class subclassed from QNetworkAccessManager to try and offload the request to a new QNetworkAccessManager, but with no luck. It appears as though the culprit of the slow downs is coming from the QNetworkAccessManager::createRequest() protected method as it seems to be a blocking operation.
  • Crash using QT WebKit on Windows

    4
    0 Votes
    4 Posts
    3k Views
    sierdzioS
    You should probably construct it with "new", then.
  • QtWebKit virtual keyboard problem

    4
    0 Votes
    4 Posts
    3k Views
    D
    The same thing(I'm testing on symbian). I've tried to resolve this problem (manually adjusting the position of the view) with inputmethodevent but it's not working.
  • Manipulate all HTTP Requests

    8
    0 Votes
    8 Posts
    7k Views
    N
    Using PySide, I block/tamper images like this: (Relevant portions of classes follows:) @ netMan = NetMan() class WebView(QWebView): def init(self): QWebView.init(self) self.page().setNetworkAccessManager(netMan) class NetMan(QNetworkAccessManager): def createRequest(self, op, req, data = None): url = req.url().toString() urll = url.lower() for test in ['.jpg', '.jpeg', '.gif', '.png']: if test in urll: req.setUrl(QUrl('file:///web/missing.png')) break return QNetworkAccessManager.createRequest(self, op, req, data) @
  • 0 Votes
    20 Posts
    8k Views
    M
    TioRoy, From the Makefile generated for .pro file from qmake command, I see #Generated by qmake (2.01a) (Qt 4.8.1) on: Fri Oct 12 05:49:57 2012 I download Qt5 from below link: http://releases.qt-project.org/qt5.0/beta1/qt-linux-opensource-5.0.0-beta1-x86-ubuntu1204-offline.run After using Qt5, Now I observe graph is getting plotted properly. My problem is solved :) Thanks for spending your time in answering my questions. Thanks to Qt5 too. Regards Mohan