#include <Base/QTGUI/qSlicerWebWidget.h>
|
QScopedPointer< qSlicerWebWidgetPrivate > | d_ptr |
|
Definition at line 44 of file qSlicerWebWidget.h.
◆ Superclass
◆ handleExternalUrlWithDesktopService
bool qSlicerWebWidget::handleExternalUrlWithDesktopService |
|
readwrite |
◆ internalHosts
QStringList qSlicerWebWidget::internalHosts |
|
readwrite |
◆ javaScriptConsoleMessageLoggingEnabled
bool qSlicerWebWidget::javaScriptConsoleMessageLoggingEnabled |
|
readwrite |
◆ url
QString qSlicerWebWidget::url |
|
readwrite |
◆ qSlicerWebWidget() [1/2]
qSlicerWebWidget::qSlicerWebWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~qSlicerWebWidget()
qSlicerWebWidget::~qSlicerWebWidget |
( |
| ) |
|
|
override |
◆ qSlicerWebWidget() [2/2]
qSlicerWebWidget::qSlicerWebWidget |
( |
qSlicerWebWidgetPrivate * |
pimpl, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
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 |
emitted with result of evalJS
◆ eventFilter()
bool qSlicerWebWidget::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
overrideprotected |
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 |
◆ javaScriptConsoleMessageLoggingEnabled()
bool qSlicerWebWidget::javaScriptConsoleMessageLoggingEnabled |
( |
| ) |
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 |
◆ pdfPrintingFinished
void qSlicerWebWidget::pdfPrintingFinished |
( |
const QString & |
filePath, |
|
|
bool |
success |
|
) |
| |
|
signal |
signal passed through from QWebEnginePage
◆ printToPdf [1/2]
void qSlicerWebWidget::printToPdf |
( |
const QString & |
filePath | ) |
|
|
slot |
Renders the current content of the page into a PDF document and saves it in the location specified in filePath.
The page size and orientation of the produced PDF document are taken from the values specified in pageLayout. This method issues an asynchronous request for printing the web page into a PDF and returns immediately. To be informed about the result of the request, connect to the signal pdfPrintingFinished().
If a file already exists at the provided file path, it will be overwritten.
- See also
- QWebEnginePage::printToPdf
◆ printToPdf [2/2]
void qSlicerWebWidget::printToPdf |
( |
const QString & |
filePath, |
|
|
const QPageLayout & |
pageLayout |
|
) |
| |
|
slot |
◆ setHandleExternalUrlWithDesktopService()
void qSlicerWebWidget::setHandleExternalUrlWithDesktopService |
( |
bool |
enable | ) |
|
◆ setHtml()
Q_INVOKABLE void qSlicerWebWidget::setHtml |
( |
const QString & |
html, |
|
|
const QUrl & |
baseUrl = QUrl() |
|
) |
| |
Convenience for setting the internal webView html from a QString.
◆ setInternalHosts()
void qSlicerWebWidget::setInternalHosts |
( |
const QStringList & |
hosts | ) |
|
◆ setJavaScriptConsoleMessageLoggingEnabled()
void qSlicerWebWidget::setJavaScriptConsoleMessageLoggingEnabled |
( |
bool |
enable | ) |
|
◆ 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: