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 () | |
![]() | |
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 | |
boost::shared_ptr< Base::SystemExitException > caughtException | |
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()
|
explicit |
References commitData().
◆ ~GUIApplication()
|
virtual |
Member Function Documentation
◆ commitData
|
slot |
References App::Application::closeAllDocuments(), App::GetApplication(), and Gui::getMainWindow().
Referenced by GUIApplication().
◆ event()
References Gui::Application::Instance, and Gui::Application::open().
◆ notify()
Make forwarding events exception-safe and get more detailed information where an unhandled exception comes from.
References Spaceball::ButtonEvent::ButtonEventType, caughtException, Base::Console(), Base::ConsoleSingleton::Error(), Base::ConsoleSingleton::Log(), Spaceball::MotionEvent::MotionEventType, femsolver.signal::notify(), and Gui::GUIApplicationNativeEventAware::processSpaceballEvent().
Member Data Documentation
◆ caughtException
boost::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:
- src/Gui/GuiApplication.h
- src/Gui/GuiApplication.cpp