mickey
26th May 2006, 16:34
Hi I wonder what's the problem in that code. Compiler get me this error (on the last code):
error C2664: 'MyPopupmenu::MyPopupmenu(MyWidget *,const char *,const QString *)' : cannot convert parameter 3 from 'const char [6]' to 'const QString *'
MyPopupmenu::MyPopupmenu(MyWidget* parent, const char* name, const QString* title):
QPopupMenu( parent, name) {
.................
MyPopupmenu* myPopupmenu = new MyPopupmenu( this,0, "title" );
error C2664: 'MyPopupmenu::MyPopupmenu(MyWidget *,const char *,const QString *)' : cannot convert parameter 3 from 'const char [6]' to 'const QString *'
MyPopupmenu::MyPopupmenu(MyWidget* parent, const char* name, const QString* title):
QPopupMenu( parent, name) {
.................
MyPopupmenu* myPopupmenu = new MyPopupmenu( this,0, "title" );