#include <Base/QTGUI/qSlicerWebWidget.h>
|
QScopedPointer< qSlicerWebWidgetPrivate > | d_ptr |
|
Definition at line 54 of file qSlicerWebWidget.h.
◆ Superclass
◆ handleExternalUrlWithDesktopService
bool qSlicerWebWidget::handleExternalUrlWithDesktopService |
|
readwrite |
◆ internalHosts
QStringList qSlicerWebWidget::internalHosts |
|
readwrite |
◆ url
QString qSlicerWebWidget::url |
|
readwrite |
◆ qSlicerWebWidget() [1/2]
qSlicerWebWidget::qSlicerWebWidget |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
◆ ~qSlicerWebWidget()
virtual qSlicerWebWidget::~qSlicerWebWidget |
( |
| ) |
|
|
virtual |
◆ qSlicerWebWidget() [2/2]
qSlicerWebWidget::qSlicerWebWidget |
( |
qSlicerWebWidgetPrivate * |
pimpl, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
protected |
◆ acceptNavigationRequest()
virtual bool qSlicerWebWidget::acceptNavigationRequest |
( |
const QUrl & |
url, |
|
|
QWebEnginePage::NavigationType |
type, |
|
|
bool |
isMainFrame |
|
) |
| |
|
protectedvirtual |
◆ evalJS()
Q_INVOKABLE QString qSlicerWebWidget::evalJS |
( |
const QString & |
js | ) |
|
Convenient function to evaluate JS in main frame context from C++ or Python code
◆ evalResult
void qSlicerWebWidget::evalResult |
( |
QString |
js, |
|
|
QString |
result |
|
) |
| |
|
signal |
emited with result of evalJS
◆ 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.
◆ handleExternalUrlWithDesktopService()
bool qSlicerWebWidget::handleExternalUrlWithDesktopService |
( |
| ) |
const |
Return true if external URL should be open with desktop service.
Setting both this property to true and at least one internal host will ensure URLs not matching an internal host are open with the current desktop browser.
- See also
- setInternalHost(const QString&)
-
QDesktopServices::openUrl
◆ handleSslErrors
void qSlicerWebWidget::handleSslErrors |
( |
QNetworkReply * |
reply, |
|
|
const QList< QSslError > & |
errors |
|
) |
| |
|
protectedslot |
◆ initJavascript
virtual void qSlicerWebWidget::initJavascript |
( |
| ) |
|
|
protectedvirtualslot |
◆ internalHosts()
QStringList qSlicerWebWidget::internalHosts |
( |
| ) |
const |
◆ loadFinished
void qSlicerWebWidget::loadFinished |
( |
bool |
ok | ) |
|
|
signal |
◆ loadProgress
void qSlicerWebWidget::loadProgress |
( |
int |
progress | ) |
|
|
signal |
◆ loadStarted
void qSlicerWebWidget::loadStarted |
( |
| ) |
|
|
signal |
signal passed through from QWebEngineView
◆ onDownloadFinished
void qSlicerWebWidget::onDownloadFinished |
( |
QNetworkReply * |
reply | ) |
|
|
slot |
◆ onDownloadProgress
void qSlicerWebWidget::onDownloadProgress |
( |
qint64 |
bytesReceived, |
|
|
qint64 |
bytesTotal |
|
) |
| |
|
slot |
◆ onDownloadStarted
void qSlicerWebWidget::onDownloadStarted |
( |
QNetworkReply * |
reply | ) |
|
|
slot |
◆ onLoadFinished
virtual void qSlicerWebWidget::onLoadFinished |
( |
bool |
ok | ) |
|
|
protectedvirtualslot |
◆ onLoadProgress
virtual void qSlicerWebWidget::onLoadProgress |
( |
int |
progress | ) |
|
|
protectedvirtualslot |
◆ onLoadStarted
virtual void qSlicerWebWidget::onLoadStarted |
( |
| ) |
|
|
protectedvirtualslot |
◆ setHandleExternalUrlWithDesktopService()
void qSlicerWebWidget::setHandleExternalUrlWithDesktopService |
( |
bool |
enable | ) |
|
◆ setInternalHosts()
void qSlicerWebWidget::setInternalHosts |
( |
const QStringList & |
hosts | ) |
|
◆ setUrl
void qSlicerWebWidget::setUrl |
( |
const QString & |
url | ) |
|
|
slot |
Convenience for setting the internal webView QUrl from a QString.
◆ url()
Q_INVOKABLE QString qSlicerWebWidget::url |
( |
| ) |
|
Convenience for setting the internal webView QUrl from a QString.
◆ webView()
Q_INVOKABLE QWebEngineView* qSlicerWebWidget::webView |
( |
| ) |
|
Return a reference to the QWebView used internally.
◆ qSlicerWebEnginePage
friend class qSlicerWebEnginePage |
|
friend |
◆ d_ptr
QScopedPointer<qSlicerWebWidgetPrivate> qSlicerWebWidget::d_ptr |
|
protected |
The documentation for this class was generated from the following file: