The problem is that char is NOT "my" type. It is a key word in C and C++.
I wrote this:

Qt Code:
  1. Q_PROPERTY (QList<char> pointType READ pointType WRITE setPointType NOTIFY pointTypeChanged)
To copy to clipboard, switch view to plain text mode 

and I get that error when I access it in QML. Yes, I have used qmlRegisterType for registering my class in main.cpp.
I have used other objects too like int and QList, but the error occurs only for char.

When int works why doesn't char work?