[Qt-creator] QtCreator 4.2 cannot parse qobject.h?
Guenter Schwann
guenterlists at schwann.at
Thu Dec 15 10:48:46 CET 2016
Am 15.12.2016 um 09:51 schrieb Nikolai Kosjar:
> On 12/15/2016 09:40 AM, Guenter Schwann wrote:
>> Hi,
>>
>> I upgraded to QtCreator 4.2. And I'm using the clang code model.
>> I get the following warning when opening a file:
>>
>> "The code model could not parse an included file, which might lead to
>> slow or
>> incorrect code completion and highlighting, for example"
>>
>> When showing the details
>> qobject.h:427:7 error: expected '.'
>>
>> The line is public Q_SLOTS:
>>
>> It's on Windows as well as on Linux. With a qmake and as well with a
>> cmake
>> project.
>> Any idea how to get rid of that warning? Or even better how to
>> avoid/fix the
>> error?
>
> Hmm, I don't see this. Please create a report for the C/C++ Component at
>
> https://bugreports.qt.io/
>
> with some debugging output - see
> https://wiki.qt.io/Qt_Creator_Clang_Code_Model. State also your used
> Kit/Toolchain.
It seems it's caused by disabling the Qt keywords. There is a bugreport
for this already:
QTCREATORBUG-17371
Guenter
More information about the Qt-creator
mailing list