Get IMEI code from N9 [Solved]
-
Hi all,
I need to get imei code from my N9 to use it as authentication in Qt.Unfortunately I can't find documentation or example to get it.
Can you help me?
-
It seems QSystemDeviceInfo is not available...
-
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.)
-
Thanks, now it compiles without errors.
I didn't read about that macro.