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 |