hi,
i have problems with a signal.

so i make the signal in the header file
Qt Code:
  1. signals:
  2. QString signal_add_to_list(QString, QString);
To copy to clipboard, switch view to plain text mode 

and emit it in a funktion
Qt Code:
  1. emit this->signal_add_to_list(typ, name);
To copy to clipboard, switch view to plain text mode 

I connected it with a slot in the same class, just to test if it works.
Qt Code:
  1. connect(this, SIGNAL(signal_add_to_list(QString,QString)), this, SLOT(slot_test(QString,QString)));
To copy to clipboard, switch view to plain text mode 

slot:
Qt Code:
  1. public slots:
  2. void slot_test(QString atyp, QString aname);
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. void ClassName::slot_test(QString atyp, QString aname){
  2. cout<<"it works"<<atyp.toStdString()<<aname.toStdString()<<endl;
  3. }
To copy to clipboard, switch view to plain text mode 
This slot just say "it works" if it would work, but it doesnt. The compiler doesnt say an error or a warning and i already made a few signals in the same class and they works all, but i cant see the reason why this doesnt work.

Thanks for reading and may you know the answer.

mark