I am trying to catch a signal and am having problems with the handler. I declared a static function to handle the signal, but I keep on getting this error:
"Cannot declare member function 'void SignalThread::messageHandler(int) to have static linkage.
(This class inherits from QThread)
Here is the some of the code:
signalServerFlag = 0;
static void SignalThread::messageHandler(int signum)
signalServerFlag = 1;