I am unable to make my class derived from QAbstractListModel working with qml ListView.

Situation looks like this:

I have created ButtonMenu QML element:
Qt Code:
  1. Rectangle {
  2. id: menuRoot
  3. ...
  4. property Component model
  5. ...
To copy to clipboard, switch view to plain text mode 
In this element I have another one and in this another one I have ListView element
Qt Code:
  1. Rectangle {
  2. id: menu
  3. ...
  4. ListView {
  5. id: menuList
  6. ...
  7. model: menuRoot.model;
  8. ...
To copy to clipboard, switch view to plain text mode 

Now when I create ButtonMenu element I have something like this:
Qt Code:
  1. ButtonMenu {
  2. id: buttonMenu
  3. ...
  4. model: menuMainViewArea
  5. ...
To copy to clipboard, switch view to plain text mode 

In C++ I do this:
Qt Code:
  1. ctxt->setContextProperty("menuMainViewArea",engine.getMenuMainViewArea());
To copy to clipboard, switch view to plain text mode 

When I run my program i get following error:
Error: Cannot assign QObject* to QDeclarativeComponent*

I tried to make model in menuRoot an alias to menuList model but when I called model.count when setting size of all rectangles I got model.count undefined.

Does anyone know what can be wrong??