I am trying to use signals and slots to read data from a digitizer and then update a window upon the reading of the data. I am trying to generate a signal that is emitted from a method in one of my classes. The slot is a member function of a class derived from TGMainFrame.
Here are the specifics:
I have a class called digitizer that is derived from TQObject. The digitizer class has a method called Acquire, which performs the functions of acquiring the data from the digitizer and then emits a signal.
I also have a class called TestMainFrame that is derived from TGMainFrame. TestMainFrame has a member function called updatewindow that is supposed to update the window with new data received from the digitizer.
The class I am using (digitizer) inherits from TQObject. I am wondering why the error message reports that the signal does not exist in TQObject, when my class is an inherited class from TQObject.
Any help you can provide would be greatly appreciated. Thanks so much in advance.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
digitizerLInkDef.h #ifdefCINT #progma link off all globals; #pragma link off all classes; #pragma link off all functions;
I have changed void Acquire(void) to void Acquire() in my class definition. Still no luck. The error message is that TQObject::Acquire() does not exist. However, my class is digitizer, which is derived from TQObject. Note that Acquire is new member function that I am defining in my derived class and which does not exist in TQObject. I don’t understand what is wrong. I really hope to get this to work as it will help our experiment. Is there anything else you can recommend.
TestMainFramedict.C : TestMainFrame.h @echo “Generating dictionary for TestMainFrame. . .” @rootcint TestMainFramedict.C -c TestMainFrame.h @echo "done . . .
[/code]
I think the rootcint command has to be something like this:
rootcint -f digitizerdict.c -c digitizer.h digitizerLinkDef.h
same thing for the dict for testmainframe.