21 #ifndef __qSlicerWebWidget_h 22 #define __qSlicerWebWidget_h 29 #include "qSlicerBaseQTGUIExport.h" 31 #include "vtkSlicerConfigure.h" 34 class qSlicerWebWidgetPrivate;
36 #ifdef Slicer_HAVE_WEBKIT_SUPPORT 42 #if (QT_VERSION < QT_VERSION_CHECK(5, 3, 0)) 67 #ifdef Slicer_HAVE_WEBKIT_SUPPORT 68 Q_INVOKABLE QWebView * webView();
70 Q_INVOKABLE QWebEngineView * webView();
74 QString evalJS(
const QString &js);
78 void onDownloadStarted(QNetworkReply* reply);
80 void onDownloadProgress(qint64 bytesReceived, qint64 bytesTotal);
82 void onDownloadFinished(QNetworkReply* reply);
85 virtual void initJavascript();
86 virtual void onLoadStarted();
87 virtual void onLoadFinished(
bool ok);
88 virtual void onLinkClicked(
const QUrl& url);
92 QScopedPointer<qSlicerWebWidgetPrivate>
d_ptr;
96 bool eventFilter(QObject *obj, QEvent *event);