qtpat
2nd January 2011, 23:39
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:
QDeclarativeView *view = new QDeclarativeView();
view->rootContext()->setContextProperty("Tool", new Tool);
view->setSource(QUrl("qrc:/qml/main.qml"));
view->show();
Any help would be appreciated
Cheers !
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:
QDeclarativeView *view = new QDeclarativeView();
view->rootContext()->setContextProperty("Tool", new Tool);
view->setSource(QUrl("qrc:/qml/main.qml"));
view->show();
Any help would be appreciated
Cheers !