Unable to use Qt Mobility Connectivity Classes
Whenever i add header file of Conectivity( specially buletooth classes), then there is no error on including it. But when i create any of objects of these classes then the following error came.
error: 'QBluetoothAddress' does not name a type
on fallowing line
QBluetoothAddress obj;
where as #include <QBluetoothAddress> is also there.
in project file i had also wrote the following code.
CONFIG += mobility
MOBILITY += connectivity
Please help me to sort out this issue.
Thanks in advance:)
Re: Unable to use Qt Mobility Connectivity Classes
Mobility classes are defined in the mobility namespace.
To use the mobility namespace, you should use this macro: QTM_USE_NAMESPACE
Example: [url]http://apidocs.meego.com/git-tip/qtmobility/btfiletransfer-remoteselector-cpp.html[/url]
Re: Unable to use Qt Mobility Connectivity Classes
Thanx its now working after including this macro:)