Gentoo Archives: gentoo-amd64

From: Paul de Vrieze <pauldv@g.o>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Qt tutorial 7 - anyone got this to work?
Date: Wed, 28 Mar 2007 14:18:17
Message-Id: 200703281615.00022.pauldv@gentoo.org
In Reply to: [gentoo-amd64] Qt tutorial 7 - anyone got this to work? by Daiajo Tibdixious
1 On Sunday 25 March 2007, Daiajo Tibdixious wrote:
2 > This is probably off-topic, so suggestions to go elsewhere are welcome.
3 > I reported this to trolltech as a bug, but it doesn't show in their
4 > task tracker.
5 > http://doc.trolltech.com/4.2/tutorial-t7.html
6 > Introduces creating ones own signals & slots.
7 > slots seem to work fine but signals are not found in a connect call.
8 > I can't see any difference between the Qt supplied signals (in their
9 > includes), and my ones.
10 >
11 > Another funny is that the Q_OBJECT macro works fine in the Qt includes,
12 > however if used in my program, linker vtable errors occur caused by
13 > the virtual functions declared by the macro.
14
15 I should probably tell you to read the documentation. What happens is that you
16 must include the macro, AND, run moc on your file which creates another C++
17 file that you must also compile (and link). The easiest way to build qt
18 projects is to use qmake which handles it for you.
19
20 Paul
21
22 --
23 Paul de Vrieze
24 Gentoo Developer
25 Mail: pauldv@g.o
26 Homepage: http://www.devrieze.net