[Qt-creator] Wrong red underline

Adam Higerd ahigerd at timeips.com
Thu Nov 6 23:21:39 CET 2008


Leo Spalteholz wrote:
> This line is underlined in red even though it compiles just fine:
> 
> QTimer::singleShot(0, this, SLOT("nextStop()"));
> 
> The error in the tooltip is:  expected token ')' got 'nextStop()'
> 
> Leo
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
> 

It may compile, but it's still wrong; SLOT doesn't need quotes.



More information about the Qt-creator-old mailing list