Gui::GUIApplication Class Reference

Override QCoreApplication::notify() to fetch exceptions in Qt widgets properly that are not handled in the event handler or slot. More...

#include <GuiApplication.h>

Public Slots

void commitData (QSessionManager &manager)
 

Public Member Functions

 GUIApplication (int &argc, char **argv)
 
bool notify (QObject *receiver, QEvent *event)
 Make forwarding events exception-safe and get more detailed information where an unhandled exception comes from. More...
 
virtual ~GUIApplication ()
 
- Public Member Functions inherited from Gui::GUIApplicationNativeEventAware
 GUIApplicationNativeEventAware (int &argc, char *argv[])
 
void initSpaceball (QMainWindow *window)
 
bool isSpaceballPresent () const
 
void postButtonEvent (int buttonNumber, int buttonPress)
 
void postMotionEvent (std::vector< int > motionDataArray)
 
bool processSpaceballEvent (QObject *object, QEvent *event)
 
void setSpaceballPresent (bool present)
 
 ~GUIApplicationNativeEventAware ()
 

Public Attributes

std::shared_ptr< Base::SystemExitExceptioncaughtException
 Pointer to exceptions caught in Qt event handler. More...
 

Protected Member Functions

bool event (QEvent *event)
 

Detailed Description

Override QCoreApplication::notify() to fetch exceptions in Qt widgets properly that are not handled in the event handler or slot.

Constructor & Destructor Documentation

◆ GUIApplication()

GUIApplication::GUIApplication ( int argc,
char **  argv 
)
explicit

◆ ~GUIApplication()

GUIApplication::~GUIApplication ( )
virtual

Member Function Documentation

◆ commitData

void GUIApplication::commitData ( QSessionManager &  manager)
slot

◆ event()

bool GUIApplication::event ( QEvent event)
protected

◆ notify()

bool GUIApplication::notify ( QObject receiver,
QEvent event 
)

Member Data Documentation

◆ caughtException

std::shared_ptr<Base::SystemExitException> Gui::GUIApplication::caughtException

Pointer to exceptions caught in Qt event handler.

Referenced by notify(), and Gui::Application::runApplication().


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