Signal-Problem
Verfasst: 24. November 2005 12:03
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.
have tested the slot with a button signal in the class SVMainWindow. That worked.)
Is there anyone who can help me?
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.
Is there anyone who can help me?