LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   help needed with QT (https://www.linuxquestions.org/questions/programming-9/help-needed-with-qt-133755/)

sabeel_ansari 01-11-2004 02:45 PM

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

esben 01-21-2004 02:14 PM

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.