maybe you forgot the Q_OBJECT macro? is searchfunc" defined as a slot?
maybe you forgot the Q_OBJECT macro? is searchfunc" defined as a slot?
Hi FelixB
This is what i have in the mainwindow.h file
Qt Code:
private slots:To copy to clipboard, switch view to plain text mode
hi @jins ,
as FelixB said, did u forget the Q_OBJECT macro.
Qt Code:
{ Q_OBJECT private slots: }To copy to clipboard, switch view to plain text mode
did u include #include <QtGui>
pls check
pls post the class part
Bala
Last edited by BalaQT; 30th November 2010 at 12:17.
I have the QObject specified already, I am sorry i didnt paste the entire code before here it is:
Qt Code:
{ Q_OBJECT public: ~MainWindow(); private: Ui::MainWindow *ui; DB* dbManager; bool opendb; QList<PersonData*> persondata; private slots:To copy to clipboard, switch view to plain text mode
did u include #include <QtGui>
Bala
Hi Bala
I have #include <QtGui/QApplication > in main.cpp but just in case i have also added #include <QtGui> and i am still getting the error message.
hi,
how u r compiling?
try qmake-qt4
clean all the files, delete all the obj files and then try qmake-qt4
shall i know where u r using connect?
pls post the connect block
Bala
Ok i will like to publically apoligise for my stupidity, i had cut and pasted the connect line outside MainWindow::MainWindow setup and didnt realise. I am so sorry for wasting your time but also very greatful for all your help and advice (BalaQT the third argument you advised worked a dream)
Bookmarks