Hi,

Thanks wysota.

Another question not really Qt related:
I want to redefine the method you told, but I don't want to create another h and cpp files so I want to add the redefinition in myClass.h:

myClass.h
Qt Code:
  1. #ifndef MYCLASS_H
  2. #define MYCLASS_H
  3.  
  4. class myClass : public QObject
  5. {
  6. Q_OBJECT
  7.  
  8. public:
  9. myClass(QWidget*);
  10. ~myClass();
  11. private:
  12. ...
  13. ...
  14. }
  15. #endif
To copy to clipboard, switch view to plain text mode 

Can you tell me how to add the redefinition in the same h file?

Thanks,