Workspace 6.21.5
|
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 () |
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.
WebBrowserWidget | ( | QWidget * | parent = nullptr | ) |
void clearCache | ( | ) |
|
slot |
|
slot |
This function forwards to QWebView::setHtml(). It exists purely because that function is not declared as a slot by Qt, whereas setHtmlContent() is.