[Qt-interest] Runtime Error :- connect: No such slot (FIXED) But...
Wm. G. Urquhart
wgu at wurquhart.co.uk
Sun Feb 21 14:00:19 CET 2010
Thiago Macieira wrote:
> Em Domingo 21. Fevereiro 2010, às 11.49.58, Wm. G. Urquhart escreveu:
>> I have crippled 99% of the application by commenting out the all of the
>> applications connect(...)ions at start up along with other stuff, but
>> still I get nothing.
>
> Is it already less than 500 lines of code? (including the class declarations)
>
> If so, post it to the mailing list.
Hi,
In an attempt to slim the project down for submission to the list I went
mad with the comments and excluded everything from the .h and .cpp MyApp
files. However, having cleaned the project when I rebuilt it (Debug
Mode) I got complains of everything I had commented out being missing!
Anyway, after a bit of looking around it would appear that the project
is always trying to include ./release/moc_myapp.cpp and not the current
./debug one. But already being blinded by this I can't see where this is
configured.
This is the MOC command line:
"$(QTDIR)\bin\moc.exe" "$(InputPath)" -o
"$(ConfigurationName)\moc_$(InputName).cpp" -DQT_CORE_LIB -DQT_GUI_LIB
-DQT_LARGEFILE_SUPPORT -DQT_THREAD_SUPPORT -DUNICODE -I"$(NOINHERIT)\."
-I"$(QTDIR)\include\." -I"$(QTDIR)\include\QtCore\."
-I"$(QTDIR)\include\QtGui\." -I".\." -I"$(ConfigurationName)\."
the "Output Line":
"$(ConfigurationName)\moc_$(InputName).cpp"
and "Additional Deps"
"$(ConfigurationName)\moc_$(InputName).cpp"
And finally, the MOC directory in my Qt Plugin Settings:
.\GeneratedFiles\$(ConfigurationName)
I'm using Visual Studio 2008 so if anyone know how I can fix this I
would be a very happy chap.
--
William
More information about the Qt-interest-old
mailing list