문제

I'm new to Symbian, currently I done the same with j2me with the following code for getting the cellid, like that. Is there any way to get the device id that will excute in Qt SDK?

if(out== null ||out.equals("null")|| out.equals(""))
                out = System.getProperty("com.nokia.mid.cellid");
도움이 되었습니까?

해결책

You can use the QtMobility APIs to get the cell ID:

#include <QSystemNetworkInfo>

QtMobility::QSystemNetworkInfo netInfo;
int cellId = netInfo.cellId();

Remember to add Qt Mobility to your .pro file:

CONFIG += mobility
MOBILITY += systeminfo

Hope this helps!

Best regards

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top