Signal-Problem

Alles rund um die Programmierung mit Qt
Antworten
Bullklaus_XXX
Beiträge: 1
Registriert: 17. November 2005 08:05

Signal-Problem

Beitrag 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?
klogg
Beiträge: 129
Registriert: 5. September 2005 17:00
Wohnort: Hann. Münden

Beitrag von klogg »

My first idea:
Maybe your emit command isn't triggered?

Perhaps you can post some example code?

HENNING
Antworten