[Qt-interest] Runtime Error :- connect: No such slot (FIXED) But...

Sean Harmer sean.harmer at maps-technology.com
Sun Feb 21 14:49:26 CET 2010


Wm. G. Urquhart wrote:
> 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.
> 

Please post your project's .pro file it sounds like you may have a 
mistake in there.

Cheers,

Sean



More information about the Qt-interest-old mailing list