Hey guys,
I've been working with Qt for a few weeks now, still I can't get this specific Signal/Slot/Constellation running.
I've got a class, "Analytic", which is a QObject (defined in Analytics.h) and has got a SLOT called display(), which is called at the end of another function ( in Analytics.cpp).
Now I've got a Mainwindow (defined in MWindow.h) which has got the public SLOT draw_layer() (defined in MWindow.cpp).
What I additionally do is
Analytics *Analy = new Analytics();
connect(Analy, SIGNAL(display()), this, SLOT(draw_layer()));
this is both happening in the main function of my MWindow.cpp
To sum it up: I've got 4 files -> 2 cpp and 2 h. In Header/File 1 I've got a signal, and in Header/File 2 I've got the public SLOT. Qt doesn't give me an error when compiling or while running, but the SLOT is just not triggered, although it works as a function.
Thanks in advance,
Daniel
Bookmarks