Hi , I'm try to insert an item in popupmenu, but problems with connnect to a SLOT
//MyWidget constructor
connect(this, SIGNAL(myUpdate()), myw, SLOT(myUpdateWidgets()) ); //this don't get error
myPopupmenu->insertItem("Zoom out",myw,SLOT(resetMoves() ),3);
//MyWidget constructor
connect(this, SIGNAL(myUpdate()), myw, SLOT(myUpdateWidgets()) ); //this don't get error
myPopupmenu->insertItem("Zoom out",myw,SLOT(resetMoves() ),3);
To copy to clipboard, switch view to plain text mode
QObject::connect: No such
slot MainForm
::resetMoves() QObject::connect: (sender name
: 'unnamed') QObject::connect: (receiver name
: 'MainForm')
QObject::connect: No such slot MainForm::resetMoves()
QObject::connect: (sender name: 'unnamed')
QObject::connect: (receiver name: 'MainForm')
To copy to clipboard, switch view to plain text mode
Why the first connect works and second get this message from console?
Bookmarks