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::SystemExitException > | caughtException |
Pointer to exceptions caught in Qt event handler. More... | |
Protected Member Functions | |
bool | event (QEvent *event) |
Override QCoreApplication::notify() to fetch exceptions in Qt widgets properly that are not handled in the event handler or slot.
|
explicit |
References commitData(), and draftgeoutils.intersections::connect().
|
virtual |
|
slot |
References App::Application::closeAllDocuments(), App::GetApplication(), and Gui::getMainWindow().
Referenced by GUIApplication().
References Gui::Application::Instance, and Gui::Application::open().
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().
std::shared_ptr<Base::SystemExitException> Gui::GUIApplication::caughtException |
Pointer to exceptions caught in Qt event handler.
Referenced by notify(), and Gui::Application::runApplication().