Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions
qSlicerApplicationHelper Class Reference

#include <Base/QTApp/qSlicerApplicationHelper.h>

Inheritance diagram for qSlicerApplicationHelper:
Inheritance graph
Collaboration diagram for qSlicerApplicationHelper:
Collaboration graph

Public Types

typedef qSlicerApplicationHelper Self
typedef QObject Superclass

Public Member Functions

 qSlicerApplicationHelper (QObject *parent=nullptr)
 ~qSlicerApplicationHelper () override

Static Public Member Functions

static Q_INVOKABLE bool checkRenderingCapabilities ()
template<typename SlicerMainWindowType >
static int postInitializeApplication (qSlicerApplication &app, QScopedPointer< QSplashScreen > &splashScreen, QScopedPointer< SlicerMainWindowType > &window)
static void preInitializeApplication (const char *argv0, ctkProxyStyle *style)
static Q_INVOKABLE int runAsAdmin (QString executable, QString parameters=QString(), QString workingDir=QString())
static void setupModuleFactoryManager (qSlicerModuleFactoryManager *moduleFactoryManager)
static void showMRMLEventLoggerWidget ()

Detailed Description

Definition at line 37 of file qSlicerApplicationHelper.h.

Member Typedef Documentation

◆ Self

Definition at line 42 of file qSlicerApplicationHelper.h.

◆ Superclass

Definition at line 41 of file qSlicerApplicationHelper.h.

Constructor & Destructor Documentation

◆ qSlicerApplicationHelper()

qSlicerApplicationHelper::qSlicerApplicationHelper ( QObject *  parent = nullptr)

◆ ~qSlicerApplicationHelper()

qSlicerApplicationHelper::~qSlicerApplicationHelper ( )

Member Function Documentation

◆ checkRenderingCapabilities()

static Q_INVOKABLE bool qSlicerApplicationHelper::checkRenderingCapabilities ( )

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

◆ postInitializeApplication()

template<typename SlicerMainWindowType >
static int qSlicerApplicationHelper::postInitializeApplication ( qSlicerApplication app,
QScopedPointer< QSplashScreen > &  splashScreen,
QScopedPointer< SlicerMainWindowType > &  window 

Perform initialization steps on the application.

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 

◆ runAsAdmin()

static Q_INVOKABLE int qSlicerApplicationHelper::runAsAdmin ( QString  executable,
QString  parameters = QString(),
QString  workingDir = QString() 

Run command as administrator (UAC on Windows, sudo on linux) Currently only works on Windows. Returns error code (0=success).

◆ setupModuleFactoryManager()

static void qSlicerApplicationHelper::setupModuleFactoryManager ( qSlicerModuleFactoryManager moduleFactoryManager)

◆ showMRMLEventLoggerWidget()

static void qSlicerApplicationHelper::showMRMLEventLoggerWidget ( )

The documentation for this class was generated from the following file: