Getting IMEI/IMSI or any other unique id in Qt5
-
Hi All
I need to fetch some unique id for the stats gathering (sure it will be hashed and not traceable back, but still I need to get some unique ID first).
I used to utilize QtMobility for getting device IMEI, but it's not available anymore. What do you use in Qt5 for it?
Best regards,
Artem. -
If I were you I would try the "Qt Add-on module":http://qt-project.org/wiki/Qt-Add-ons-Modules "Qt System Info":https://qt.gitorious.org/qt/qtsystems.
-
Did that, works. Main trick was to figure out how to install these modules to the platform of choice (SailfishOS).
-
[quote author="artem.marchenko" date="1382307236"]Did that, works. Main trick was to figure out how to install these modules to the platform of choice (SailfishOS).[/quote]
Well done! May be you should share your experience with the installation at the wiki :)
Btw I'm happy to hear that more and more developers are working on SailfishOS :) -
There doesn't seem to be much life in the sailfish os wiki and I am sort of reluctant to create the proper structure for placing such finding there..
The trick itself is public, you can see it in the Wikipedia app, commit of interest is this one - https://github.com/amarchen/Wikipedia/commit/37b01e6fbbba951e83811a804df4cd730891da0c
I guess mentioning it here will help people coming from google.
-
[quote author="artem.marchenko" date="1382538276"]There doesn't seem to be much life in the sailfish os wiki[/quote]
I was talking about the "Qt Project's wiki":http://qt-project.org/wiki -
Ah, this hint is OS-specific me thinks, I have no idea how to install modules to another environments.
-
[quote author="artem.marchenko" date="1382538706"]Ah, this hint is OS-specific me thinks, I have no idea how to install modules to another environments.[/quote]
Don't worry about that. Just specify at the topic of the article that it is related to SailfishOS. Qt Project's wiki already contains a lot of OS specific articles about Tizen, Android, MeeGo, Symbian, etc.