class CMyItem : public QDeclarativeItem{...}
qmlRegisterType<CMyItem>("MyItems", 1, 0, "MyItem");
import MyItems 1.0import QtQuick 1.0Item { width: 300; height: 200 MyItem{ width: 100; height: 100 text: "text" ... }}
virtual void componentComplete()