qaxWidget( Microsoft web browser ), load html from string

  • Hello all,
    I have a qaxwidget(Microsoft web browser) in my desktop application and I want to load a modified HTML script into it.
    What I have found on the internet is that first, we must navigate to a blank page document like the code below:

    QVariantList params;
    ui->axWidget->dynamicCall("Navigate2(QVariant&, QVariant&, QVariant&, QVariant&, QVariant&)",params);

    After that I want to load this html script into the web-browser

    QString str="<html><body>Please enter your name:<br/><input type='text' name='userName'/><br/><a href=''>continue</a></body></html>";

    i would be grateful if you could give me a clue how to do it.

  • Any Idea?