Error in QDeclarativeView
-
Hi to all
I wrote this code for viewing a qml file that i designed it
@ QDeclarativeView *view = new QDeclarativeView;
view->setSource(QUrl::fromLocalFile("myqmlfile.qml"));
view->show();@
but it show me a this error .
@mypath.....\previewer.cpp:17: error: undefined reference to `_imp___ZN16QDeclarativeViewC1EP7QWidget'@ -
Hello,
in your .pro file you should add
@
QT += declarative
@ -
so thanks sir
Best Regard ;)