Slicer
5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Base/QTGUI/qSlicerWebPythonProxy.h>
Public Slots | |
QString | evalPython (const QString &python) |
Public Member Functions | |
qSlicerWebPythonProxy (QObject *parent=nullptr) | |
Constructor. More... | |
Definition at line 31 of file qSlicerWebPythonProxy.h.
|
explicit |
Constructor.
|
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.