Get IMEI code from N9 [Solved]
-
Hi Luca
What do you mean by QSystemDeviceInfo not being available?
Have you tried this?
http://www.developer.nokia.com/Community/Wiki/Get_Device_information_using_Qt_for_Symbian
-
Yes, I tried that but it seems it's not valid for N9.
Adding this to my .pro:
@
CONFIG += mobility
MOBILITY = systeminfo
@I can include the header ad compile without error:
@
#include <QSystemDeviceInfo>
#include <QtSystemInfo/QSystemInfo>
#include <qsysteminfo.h>
...
...
@but if I use the QSystemDeviceInfo object:
@
...
...
QSystemDeviceInfo info;
...
@I get the error:
@
error: 'QSystemDeviceInfo' was not declared in this scope
@It seems the library is not available.
-
Are you using the @QTM_USE_NAMESPACE@ macro in your code? (See "here":http://doc.qt.digia.com/qtmobility/quickstart.html for details.)