Please nominate your Qt Champions for 2021!

How to provide Username and password while using QWebEngineView

  • Hi All,
    I am opening a web page using QWebEnginePage and have to login to enter into it.

    class projWebPage : public QWebEnginePage
            explicit projWebPage(QWidget *parent = nullptr);

    In Class projWebView constructor, I have following changes

    auto projView = new QWebEngineView(this);
    projWebPage *page = new projWebPage(this);
    QString httpUrl = "";

    This httpUrl, open a page to enter username and password. I want to bypass that and open the next page by passing username and password along with url. I tried http://username:password@ but didn't work.

    Also I had tried using

     QUrl httpUrl = "";

    But no luck..

    Is there a way to send user name and password along?
    Thanks :)

  • @Ryna said in How to provide Username and password while using QWebEngineView:

    Look at the HTML source code of that page and find how the username/password are sent to the web server once the user is done with entering such values

Log in to reply