GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::octave_qapplication Class Reference

This class is a simple wrapper around QApplication so that we can reimplement QApplication::notify. More...

#include "octave-qobject.h"

Inheritance diagram for octave::octave_qapplication:
Collaboration diagram for octave::octave_qapplication:

Signals

void interpreter_event (const fcn_callback &fcn)
 
void interpreter_event (const meth_callback &meth)
 

Public Member Functions

 octave_qapplication (int &argc, char **argv)
 
 ~octave_qapplication (void)
 
virtual bool notify (QObject *receiver, QEvent *e) override
 Reimplement QApplication::notify. More...
 

Detailed Description

This class is a simple wrapper around QApplication so that we can reimplement QApplication::notify.

The octave_qapplication object should behave identically to a QApplication object except that it overrides the notify method so we can handle forward Octave octave::execution_exception exceptions from the GUI thread to the interpreter thread.

Definition at line 54 of file octave-qobject.h.

Constructor & Destructor Documentation

◆ octave_qapplication()

octave::octave_qapplication::octave_qapplication ( int &  argc,
char **  argv 
)
inline

Definition at line 60 of file octave-qobject.h.

◆ ~octave_qapplication()

octave::octave_qapplication::~octave_qapplication ( void  )
inline

Definition at line 66 of file octave-qobject.h.

Member Function Documentation

◆ interpreter_event [1/2]

void octave::octave_qapplication::interpreter_event ( const fcn_callback fcn)
signal

Referenced by notify().

◆ interpreter_event [2/2]

void octave::octave_qapplication::interpreter_event ( const meth_callback meth)
signal

◆ notify()

bool octave::octave_qapplication::notify ( QObject receiver,
QEvent *  ev 
)
overridevirtual

Reimplement QApplication::notify.

Octave's own exceptions are caught and rethrown in the interpreter thread.

Definition at line 132 of file octave-qobject.cc.

References interpreter_event().


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