#include <Base/QTGUI/qSlicerWebPythonProxy.h>
|
QScopedPointer< qSlicerWebPythonProxyPrivate > | d_ptr |
|
Definition at line 32 of file qSlicerWebPythonProxy.h.
◆ Superclass
◆ EvalPythonMode
◆ verbose
bool qSlicerWebPythonProxy::verbose |
|
readwrite |
◆ qSlicerWebPythonProxy() [1/2]
qSlicerWebPythonProxy::qSlicerWebPythonProxy |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ ~qSlicerWebPythonProxy()
virtual qSlicerWebPythonProxy::~qSlicerWebPythonProxy |
( |
| ) |
|
|
virtual |
◆ qSlicerWebPythonProxy() [2/2]
qSlicerWebPythonProxy::qSlicerWebPythonProxy |
( |
qSlicerWebPythonProxyPrivate * | pimpl | ) |
|
|
protected |
◆ evalPython
QString qSlicerWebPythonProxy::evalPython |
( |
const QString & | python, |
|
|
int | mode = FileInput ) |
|
slot |
Convenient function to execute python code from the JavaScript (when an instance of this class is registered with the WebChannel).
Internally Slicer's python manager is used to execute the passed code, and the resulting QVariant is returned as a string.
As a precaution, the user is prompted to allow or disallow running python code from web pages.
- See also
- qSlicerWebWidget::initializeWebEngineProfile
◆ Q_ENUMS()
◆ setVerbose()
void qSlicerWebPythonProxy::setVerbose |
( |
bool | value | ) |
|
◆ verbose()
bool qSlicerWebPythonProxy::verbose |
( |
| ) |
const |
Enabled detailed logging during Python evaluation.
◆ d_ptr
QScopedPointer<qSlicerWebPythonProxyPrivate> qSlicerWebPythonProxy::d_ptr |
|
protected |
The documentation for this class was generated from the following file: