@Cameron Stubber you need moc
object .. You need to modify Custom Build Step.
You can find Custom Build Step
in header file (which has Q_OBJECT) Properties
by right click. Then type this commands ;
Command Line = $(QTDIR)\bin\moc.exe -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"$(QTDIR)\mkspecs\$(QMAKESPEC)" finddialog.h -o debug\moc_finddialog.cpp
Description = MOC finddialog.h
Outputs = debug\moc_finddialog.cpp
Additional Dependencies = $(QTDIR)\bin\moc.exe;finddialog.h
But carefull by writing this types you need to change somethings here like $(QTDIR)
it is my enviroment variables you need to write full form of where your QT located like D:\qt_5\
and also you need to be carefull finddialog
you should write your .h and .cpp
files name
And then you need to create a folder by right clicking solution explorer Add\New Filter
.. Make folder name as Generated Files
And last step right click Generated Files
add\existing item and you will see Debug folder in your solution Project and add moc_"projectName".cpp
Then re-build your solution. Problem will be solved.
Also you should add C/C++ /General/Additional Library Directories
$(QTDIR)\include
$(QTDIR)\include\QtGui
$(QTDIR)\include\QtCore
And Link/General/Additional Library Directories
$(QTDIR)\lib
Link/Input/Additional Dependencies
qtmaind.lib
QtCored4.lib
QtGuid4.lib
But dont forget to change $(QTDIR)
to your enviroment variables
or location of your qt folder. Like D:\qt_4.7.4