Important: Please read the Qt Code of Conduct -

qwebview unable to load page only one page

  • Hi!
    I'm working on some app which will collect data from site
    I have OpenSSl installed and plugins, and java scripts are turned on. I also use latest User agent. But when i'm trying to load this page, there is only a white page.
    Any suggestion what should I turn on or something?
    Thanks for help.

  • @petrzmax Hi! Just tested with minimal code and QtWebEngine and that works:

    import QtQuick 2.5
    import QtQuick.Controls 1.4
    import QtWebEngine 1.3
    ApplicationWindow {
        visible: true
        width: 600
        height: 400
        WebEngineView {
            anchors.fill: parent
            url: ""

    Maybe you can show us some of your code so we can try to figure out what's going wrong.

  • Hi, thanks for reply!
    I have a widget called QWebview, so its added in designer, but here is the code:

    MainWindow::MainWindow(QWidget *parent) :
        ui(new Ui::MainWindow)
        QWebSettings *settings = QWebSettings::globalSettings();
        settings->setAttribute(QWebSettings::JavascriptEnabled, true);
        settings->setAttribute(QWebSettings::PluginsEnabled, true);
        settings->setAttribute(QWebSettings::AutoLoadImages, true);
        settings->setAttribute(QWebSettings::JavaEnabled, true);
        settings->setAttribute(QWebSettings::JavascriptCanOpenWindows, false);
        //ui->customPlot->yAxis->setLabel(QString("CT/T kills"));

    Maybe it's because I use old version of Qt? I have just installed Qt 5.7 but there is no QWebview widget.

    Edit: Ok, so it's not working on Mingw compiler. I will try on Vs 2015

    Edit v2: Thanks porting it to QwebEngine solved my problem.

  • @petrzmax Glad to hear you solved it. Please use the "topic tools" button to mark this thread as solved. Cheers!

Log in to reply