QML Linting Issues in IDE/Text Editor

I get weird QML errors and warnings in IDEs. I’m pretty sure my syntax is right. There doesn’t seem to be any complaints related to these errors when I run my program.

CLion:

Kate:

Does anyone please know how to fix these issues? In particular, in CLion?