Hello,

Does someone would know what could be the problem ?

error: ‘QVariant::QVariant(void*)’ is private within this context

I'm trying simply to expose the class Tool to the QML file like that:

Qt Code:
  1. QDeclarativeView *view = new QDeclarativeView();
  2. view->rootContext()->setContextProperty("Tool", new Tool);
  3. view->setSource(QUrl("qrc:/qml/main.qml"));
  4. view->show();
To copy to clipboard, switch view to plain text mode 

Any help would be appreciated

Cheers !