Hi I wonder what's the problem in that code. Compiler get me this error (on the last code):
Qt Code:
  1. error C2664: 'MyPopupmenu::MyPopupmenu(MyWidget *,const char *,const QString *)' : cannot convert parameter 3 from 'const char [6]' to 'const QString *'
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. MyPopupmenu::MyPopupmenu(MyWidget* parent, const char* name, const QString* title):
  2. QPopupMenu( parent, name) {
  3. .................
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. MyPopupmenu* myPopupmenu = new MyPopupmenu( this,0, "title" );
To copy to clipboard, switch view to plain text mode