Mobility include dir not recognised in QtSDK
-
I installed a fresh copy of QtSDK from the website with an attempt to use the Messaging API in QtMobility but,
@#include <QMessage>@
doesn't work -- file not found.I hunted down the QtMobility files and it turns out they are in the subdirectory 'mw'.
So, I used:
@#include <mw/QMessage>@Success. But now I still can't use it because when I try to add this to my code:
@QMessage msg;@
I get the following errors depending on where in the code I use it:
error: 'QMessage' does not name a type, error: 'QMessage' has not been declared, error: 'QMessage' was not declared in this scopeThe really puzzling thing is that once I include <mw/QMessage>, Qt Creator recognises QMessage and provides API info for it.
So I'm not sure exactly what's going on but think it may all be because the QtMobility include dir (mw) isn't in the include paths.
Any ideas?
Edit: And yes, I'm compiling for Symbian which seems to be the only platform QMessage is supported on. And my .pro file has mobility and messaging enabled.
-
Yes.
@# If your application uses the Qt Mobility libraries, uncommentthe following lines and add the respective components to the
MOBILITY variable.
CONFIG += mobility
MOBILITY += sensors
messaging@Just tried removing QtMobility API from QtSDK Maintenance and then installing it again. No dice :(.