Workspace 6.21.5
Public Slots | Public Member Functions | List of all members
WebBrowserWidget Class Reference

QWebView with some helper slots. More...

#include <Workspace/Widgets/webbrowserwidget.h>

Inherits WebView.

Public Slots

void print ()
 
void setHtmlContent (const QString &htmlContent, const QUrl &baseUrl=QUrl())
 

Public Member Functions

 WebBrowserWidget (QWidget *parent=nullptr)
 
void clearCache ()
 

Detailed Description

This class exists primarily to make QWebView easier to use in Qt Designer. The QWebView class has only basic slot capabilities, even though it has public functions which could be treated like slots if they had been declared as such. The WebBrowserWidget class provides some useful slots that build on the functionality offered by QWebView.

Constructor & Destructor Documentation

◆ WebBrowserWidget()

WebBrowserWidget ( QWidget *  parent = nullptr)

Member Function Documentation

◆ clearCache()

void clearCache ( )

◆ print

void print ( )
slot

◆ setHtmlContent

void setHtmlContent ( const QString &  htmlContent,
const QUrl &  baseUrl = QUrl() 
)
slot

This function forwards to QWebView::setHtml(). It exists purely because that function is not declared as a slot by Qt, whereas setHtmlContent() is.