Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
qSlicerWebWidget Class Reference

#include <Base/QTGUI/qSlicerWebWidget.h>

Inheritance diagram for qSlicerWebWidget:
Inheritance graph
[legend]
Collaboration diagram for qSlicerWebWidget:
Collaboration graph
[legend]

Public Types

typedef QWidget Superclass
 Superclass typedef. More...
 

Public Slots

void onDownloadFinished (QNetworkReply *reply)
 
void onDownloadProgress (qint64 bytesReceived, qint64 bytesTotal)
 
void onDownloadStarted (QNetworkReply *reply)
 

Public Member Functions

QString evalJS (const QString &js)
 Convenient function to evaluate JS in main frame context. More...
 
 qSlicerWebWidget (QWidget *parent=0)
 Constructor. More...
 
Q_INVOKABLE QWebEngineView * webView ()
 Return a reference to the QWebView used internally. More...
 
virtual ~qSlicerWebWidget ()
 Destructor. More...
 

Protected Slots

void handleSslErrors (QNetworkReply *reply, const QList< QSslError > &errors)
 
virtual void initJavascript ()
 
virtual void onLinkClicked (const QUrl &url)
 
virtual void onLoadFinished (bool ok)
 
virtual void onLoadStarted ()
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event)
 

Protected Attributes

QScopedPointer< qSlicerWebWidgetPrivate > d_ptr
 

Detailed Description

Definition at line 52 of file qSlicerWebWidget.h.

Member Typedef Documentation

◆ Superclass

Superclass typedef.

Definition at line 58 of file qSlicerWebWidget.h.

Constructor & Destructor Documentation

◆ qSlicerWebWidget()

qSlicerWebWidget::qSlicerWebWidget ( QWidget *  parent = 0)
explicit

Constructor.

◆ ~qSlicerWebWidget()

virtual qSlicerWebWidget::~qSlicerWebWidget ( )
virtual

Destructor.

Member Function Documentation

◆ evalJS()

QString qSlicerWebWidget::evalJS ( const QString &  js)

Convenient function to evaluate JS in main frame context.

◆ eventFilter()

bool qSlicerWebWidget::eventFilter ( QObject *  obj,
QEvent *  event 
)
protected

Event filter used to capture WebView Show and Hide events in order to both set "document.webkitHidden" property and trigger the associated event.

◆ handleSslErrors

void qSlicerWebWidget::handleSslErrors ( QNetworkReply *  reply,
const QList< QSslError > &  errors 
)
protectedslot

◆ initJavascript

virtual void qSlicerWebWidget::initJavascript ( )
protectedvirtualslot

◆ onDownloadFinished

void qSlicerWebWidget::onDownloadFinished ( QNetworkReply *  reply)
slot

◆ onDownloadProgress

void qSlicerWebWidget::onDownloadProgress ( qint64  bytesReceived,
qint64  bytesTotal 
)
slot

◆ onDownloadStarted

void qSlicerWebWidget::onDownloadStarted ( QNetworkReply *  reply)
slot

◆ onLinkClicked

virtual void qSlicerWebWidget::onLinkClicked ( const QUrl &  url)
protectedvirtualslot

◆ onLoadFinished

virtual void qSlicerWebWidget::onLoadFinished ( bool  ok)
protectedvirtualslot

◆ onLoadStarted

virtual void qSlicerWebWidget::onLoadStarted ( )
protectedvirtualslot

◆ webView()

Q_INVOKABLE QWebEngineView* qSlicerWebWidget::webView ( )

Return a reference to the QWebView used internally.

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerWebWidgetPrivate> qSlicerWebWidget::d_ptr
protected

Definition at line 92 of file qSlicerWebWidget.h.


The documentation for this class was generated from the following file: