Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 0
help needed with QT

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......

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.

Old 01-21-2004, 02:14 PM   #2
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

All times are GMT -5. The time now is 12:07 PM.

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