Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

WebKit issue whatsapp



  • hello friends, when i use QWebView to load https://web.whatsapp.com/
    i have this problem, thanks

    my code

        QWebView *chromeView = new QWebView(this);
        chromeView->setGeometry(0,0,200,200);
        chromeView->load(QUrl("https://web.whatsapp.com/"));
        pagesWidget->addWidget(chromeView);
    

    i have try this code to change user agent but nothing :/

    QString QWebPageChrome::userAgentForUrl ( const QUrl & url ) const
    {
    return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko)";
    }
    

    my config , qt 5.9.8 mingw 32bits

    Sans titre.png


Log in to reply