Although I can put Qt on a client, I can't put it on a server because it is running VxWorks OS (not supported by Qt).

So I have to find a way to have a child send a signal to a parent function without the signal/slot paradigm.

I'm trying to use callbacks.

I can have a member variable in the child class that points to a function, but when I try to assign it to a parent function in a parent function it gives me trouble.

I declared the callback in the child class as:

Qt Code:
  1. void (*callback)(void)
To copy to clipboard, switch view to plain text mode 

And I try to set it in the parent class:

Qt Code:
  1. child->callback = (void*)handleSignal;
To copy to clipboard, switch view to plain text mode 

It says:

error: invalid use of member (did you forget the '&' ?)
Do I just have the syntax wrong?