This question may well have already been solved for the original OP, but for the sake of other users stumbling onto it:
QContactObserver
is part of Qt Mobility. Although Qt Mobility is included with the QtSDK, it must be unpacked and built on the development system to ensure that it is configured properly to be used in a project on that system.
In addition, the .pro file requires additions to prompt it to include the required Qt Mobility headers. For example, QContactObserver
is part of the QtContacts module, so the .pro file would require the follwing additional lines:
CONFIG += mobility
MOBILITY += contacts
The error mentioned in the comments above:
MBX: you sure have a #include <QContactObserver>
, don't you?
Marwa Shams: when i include it .. I have an error "no such file or directory"
occurs because Qt does not know where to look for the <QContactObserver>
headers. Following the steps above will remedy the problem.