#include <Base/QTApp/qSlicerApplicationHelper.h>
Definition at line 38 of file qSlicerApplicationHelper.h.
◆ Self
◆ Superclass
◆ qSlicerApplicationHelper()
| qSlicerApplicationHelper::qSlicerApplicationHelper |
( |
QObject * | parent = nullptr | ) |
|
◆ ~qSlicerApplicationHelper()
| qSlicerApplicationHelper::~qSlicerApplicationHelper |
( |
| ) |
|
|
override |
◆ checkRenderingCapabilities()
| static Q_INVOKABLE bool qSlicerApplicationHelper::checkRenderingCapabilities |
( |
| ) |
|
|
static |
Display a warning popup if rendering capabilities do not meet requirements. If user chooses not to continue then this method returns false. Known limitation: currently this method only works reliably on Windows operating system. See more information at https://issues.slicer.org/view.php?id=4252
◆ postInitializeApplication()
template<typename SlicerMainWindowType>
| static int qSlicerApplicationHelper::postInitializeApplication |
( |
qSlicerApplication & | app, |
|
|
QScopedPointer< QSplashScreen > & | splashScreen, |
|
|
QScopedPointer< SlicerMainWindowType > & | window ) |
|
static |
Perform initialization steps on the application.
- Returns
- If return value is non-zero then the application will terminate using the returned value as exit code.
◆ preInitializeApplication()
| static void qSlicerApplicationHelper::preInitializeApplication |
( |
const char * | argv0, |
|
|
ctkProxyStyle * | style ) |
|
static |
◆ recordProcessEntryPointTime()
| static void qSlicerApplicationHelper::recordProcessEntryPointTime |
( |
| ) |
|
|
static |
Record the time when the process entry point is reached. Meant to be the first statement of main() or WinMain(). Called from qSlicerApplicationMainWrapper.cxx, which every application includes into its own Main.cxx, so custom applications are measured without having to ask for it.
It is used for measuring the time that it takes for the operating system loader to create the process, map the executable, load dynamic libraries that are required for the main application, initialize the C runtime, etc.
◆ runAsAdmin()
| static Q_INVOKABLE int qSlicerApplicationHelper::runAsAdmin |
( |
QString | executable, |
|
|
QString | parameters = QString(), |
|
|
QString | workingDir = QString() ) |
|
static |
Run command as administrator (UAC on Windows, sudo on linux) Currently only works on Windows. Returns error code (0=success).
◆ setupModuleFactoryManager()
◆ showMRMLEventLoggerWidget()
| static void qSlicerApplicationHelper::showMRMLEventLoggerWidget |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: