I don't understand what was happen; but I founded in .h 'cosnt' instead const!!
Before I cuted and pasted but I see that in the first post const is true; this below works and it seems thae same of the first post;
Qt Code:
  1. #include "mylabel.h"
  2.  
  3. myLabel::myLabel (QWidget* parent, const char* name) :
  4. QLabel (parent,name) {
  5.  
  6. }
  7.  
  8. #include <qlabel.h>
  9. class myLabel : public QLabel {
  10. public:
  11. myLabel(QWidget* parent=0, const char* name=0);
  12. ~myLabel(){};
  13. };
To copy to clipboard, switch view to plain text mode