QObject::connect: No such slot !?!
Hey all, Ive created a menuBar for my widget, but i have this strange error with all items on menubar...
heres my code that creates the about item for the menubar.
Code:
QPopupMenu *help = new QPopupMenu( this );
help->insertItem( aboutIco, "About", this, SLOT(aboutMenuAction()));
in my .h file ive included under public slots section
"virtual void aboutMenuAction();"
but when i build the project the output says
Code:
QObject::connect: No such
slot SlackpackWidget
::aboutMenuAction()
duh.. this is strange!
can anyone plz help me?
Re: QObject::connect: No such slot !?!
have you
* added Q_OBJECT to the class declaration?
* is the header listed in the HEADERS section of your .pro file?
Re: QObject::connect: No such slot !?!
by the way,,, is QPopupMenu Qt class ?? :confused:
Re: QObject::connect: No such slot !?!
guyz you wont believe this, when i compile and run the project with KDevelop i got these error messages.. but when I compile and run the project manually from the console, everythink goes fine, the slots are working ;)
lol?