I have 2 differents functions/slots (in the same class) in which I emit the same signal and...one of them works, that is the slot associated to this signal is executed, and the second one does not! I have made a copy-paste of the slot code so as to be sure that it was exactly the same and still this inbelievable error! To sum up my code:
Qt Code:
  1. class A
  2. {
  3. public slots:
  4. void sl(<some data type>);
  5. };
  6. class B
  7. {
  8. signals:
  9. void si(<some data type>);
  10. public slots:
  11. void sl1() {emit si(<some data type>);};
  12. void sl2() {emit si(<some data type>);};
  13. };
  14. main()
  15. {
  16. A a;
  17. B b;
  18. QObject::connect(B, SIGNAL(si(<some data type>)), A, SLOT(sl(<some data type>)));
  19. ...
  20. }
To copy to clipboard, switch view to plain text mode 
Of course <some data type> is identical everywhere.
Did anybody face a so strange story?