Hello all!
I have the following problem: i declare enum in C++ and share it to QML context
Qt Code:
  1. class TestClass{
  2. Q_OBJECT
  3. Q_ENUMS(testEnum)
  4. public:
  5. enum testEnum{
  6. Low = 0,
  7. Mid = 1,
  8. High = 2
  9. };
  10. }
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. qmlRegisterUncreatableType<TestClass>("CppImport", 1, 0, "TestClass", "NOT MAY CREATE");
To copy to clipboard, switch view to plain text mode 

In QML I’m trying to create property variant:
Qt Code:
  1. import QtQuick 1.1
  2. import CppImport 1.0
  3.  
  4. QtObject{
  5. property variant dict:{
  6. TestClass.Low: "Low string",
  7. TestClass.Mid: "Mid string",
  8. TestClass.High: "High string",
  9. }
  10. }
To copy to clipboard, switch view to plain text mode 
I have this error:

Qt Code:
  1. Expected token `:' TestClass.Low: "Low string",
To copy to clipboard, switch view to plain text mode 

It is a bug? or I do not quite understand QML? Q_ENUMS should be represented as integers in QML. how to get around this error?

My Qt version: 4.8.4. Sory for bad english.