help needed with QT
Hi
I am new to QT programming. I am a lil stuck and I needed some help with it. I would really appreciate it. I have my code online here...... http://www.cs.concordia.ca/~sabee_an/testqt.cc Heres the problem, * Whenever I take out the comments on the statement "Q_OBJECT", i get a long list of error messages....something about "undefined reference to vtable (something)". anyway, the program is working without this statement. * The more important thing is.......I cant seem to connect the signal clicked() in the class 'MyWidget' to draw_udg_graph() in the class 'Pal'. Am I doing something wrong here? Any help would be greatly appreciated. Thank you in advance. Sabeel |
You need to make sure you run the moc compiler on any Q_OBJECTS, and include the output in either the linkage or source file. The other problem is probably related to the first. The Q_OBJECT macro has to be there in order to use slots/signals.
|
All times are GMT -5. The time now is 09:08 AM. |