Seite 1 von 1

Signal-Problem

Verfasst: 24. November 2005 12:03
von Bullklaus_XXX
Hello,

i have a problem with the signal-slot connection:

connect( dode1, SIGNAL(sig_Text(char*)), this, SLOT(setText(char*)));

The signal is defined:
class SVGLDodecahedron : public QObject
{
Q_OBJECT
signals:
void sig_Text(char*);

};


The slot is defined:
class SVMainWindow : public QWidget
{
Q_OBJECT
public slots:
void setText(char*);
};

If I do now a:

emit sig_Text("There it is!");

in the class SVGLDodecahedron, but there is no reaction. (I have tested the slot with a button signal in the class SVMainWindow. That worked.)

Is there anyone who can help me?

Verfasst: 24. November 2005 13:17
von klogg
My first idea:
Maybe your emit command isn't triggered?

Perhaps you can post some example code?

HENNING