LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-11-2004, 02:45 PM   #1
sabeel_ansari
LQ Newbie
 
Registered: Nov 2000
Location: ottawa, canada
Posts: 18

Rep: Reputation: 0
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
 
Old 01-21-2004, 02:14 PM   #2
esben
Member
 
Registered: Jun 2003
Location: Copenhagen, Denmark
Distribution: Gentoo
Posts: 48

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed sailu_mvn Programming 2 03-24-2005 06:50 AM
Help needed! =) kith Linux - General 14 02-10-2004 12:44 PM
C++ help needed sabeel Programming 6 11-27-2003 12:19 PM
help needed here... c12ayon Programming 2 10-29-2003 10:59 AM
Needed Help rajesh.s Linux - Hardware 0 12-17-2002 02:18 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration