71    explicit QgsWebView( QWidget *parent = 
nullptr )
 
   72      : QTextBrowser( parent )
 
   76      connect( 
this, &QTextBrowser::anchorClicked, 
this, &QgsWebView::linkClicked );
 
   77      connect( 
this, &QgsWebView::pageLoadFinished, mPage, &QWebPage::loadFinished );
 
   86    void setUrl( 
const QUrl &url )
 
   91    void load( 
const QUrl &url )
 
  111    virtual QgsWebView *createWindow( QWebPage::WebWindowType )
 
  116    void setContent( 
const QByteArray &data, 
const QString &contentType, 
const QUrl & )
 
  118      QString text = QString::fromUtf8( data );
 
  119      if ( contentType == 
"text/html" )
 
  122        setPlainText( text );
 
  124      emit pageLoadFinished( 
true );
 
  127    void print( QPrinter * )
 
  132    void linkClicked( 
const QUrl &link );
 
  134    void pageLoadFinished( 
bool ok );
 
  138    void setHtml( 
const QString &text )
 
  140      QTextBrowser::setHtml( text );
 
  141      emit pageLoadFinished( 
true );
 
  144    void setText( 
const QString &text )
 
  146      QTextBrowser::setText( text );
 
  147      emit pageLoadFinished( 
true );
 
 
A collection of stubs to mimic the API of a QWebPage on systems where QtWebkit is not available.