Hi I am including qdeclarative.h to my header file. Also I have added "QT += declarative " to my .pro file. But I still get no such file or directory error. Can you please help me how can I fix this error?
Hi I am including qdeclarative.h to my header file. Also I have added "QT += declarative " to my .pro file. But I still get no such file or directory error. Can you please help me how can I fix this error?
Include the headers without .h extension: #include <QtDeclarative> (run Rebuild All if still can't be found)
That doesn't work =(
Have you tried with QtDeclarative? Because that's the include for the module and as far as i know there is no qdeclarative header.
//also you can try to include another header from declarative module ex: #include <QDeclarativeView> and see if it works, and it might compile faster if you include only the headers you need.
I tried that it still doesn't work. I included another one just like you said but that does not work either (Both with QDeclarativeView / QtDeclarativeView)=(
Show us your pro-file.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
A completion for when i said Rebuild All: that should be Run qmake and then Rebuild All and it should work, if it still doesn't do as spirit said and post the .pro file and also make sure you have Qt 4.7 or newer.
Bookmarks