Error in QDeclarativeView
QML and Qt Quick
3
Posts
2
Posters
1.5k
Views
1
Watching
-
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
@