[Qt-creator] Wrong red underline

Nathan Carter nathancarter5 at gmail.com
Fri Nov 7 02:08:04 CET 2008


On Nov 6, 2008, at 5:33 PM, Leo Spalteholz wrote:

> On Thu, Nov 6, 2008 at 2:21 PM, Adam Higerd <ahigerd at timeips.com>  
> wrote:
>> 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.
>
> Oh right, brainfart sorry.   :)

But the point I think is valid, and it is that the red underliner has  
some trouble with strings.  Here's my example:

     QVERIFY( !LE.evaluate( "k = Lob('<OMS name=\"a\" cd=\"b\"/ 
 >')" ).isError() );

Error in tooltip:

     expected token `)' got `a'

Compiles and runs fine.

Nathan




More information about the Qt-creator-old mailing list