CLion QPushButton (QT5.8) aren't resolved correctly.

Hello Community,

im struggling with CLion and QT lately. Everything works finde, except syntax highlighting for QToolButtons/PushButtons/AbstractButtons.

Take a look at this. If I want to (i.e.) get the objectName for debugging reasons, CLion tells me "here is your objectName(), take it":

If I select it and move on, CLion tells me, objectName() isn't available:

I don't have a clue what the hell is wrong. Every other QT-Object works fine. But everything that has to do with a QAbstractButton, QToolButton oder QPushButton displays an error. I have all the includes correctly and even if I click "Go To -> XXX" CLion shows me the correct files and Definitions/Declarations.

When I hit "Run", the compiler is happily compiling everything. Even on other machines with different OS's.

Can you tell me whats wrong?


System:
OSX 10.11.6
CLion 2017.1.1
CMake 3.3
QT 5.8

1

请先登录再写评论。