wysote,
I use vs2008 as compiler and Q_OBJECT is in the SMainWindow class definition.
Thanks,
I think it is about MOC ing , whatever it is. I need to do more readings.
Thanks guys.
Problem is solved. If you work with visual studio any class that is derived from a QT class has to be moced. then output of the moc operation should be added to cpp file of the derived class (not in header)
how moc a header
1) Add qt bin directory to your path
2)Open cmd and cd to the location of the header
3)moc header.h > header.cpp
4)work on your new header.cpp




Reply With Quote



Bookmarks