Archived:Get network and operator name in Qt on Symbian
Jump to navigation
Jump to search
Template:Archived Template:Abstract Template:ArticleMetaData
Prerequisite[edit | edit source]
- Download ExtXQSysInfo2.zip.
- Extract ExtXQSysInfo2.zip and place all the file in your project directory.
- Edit your .pro file as mentioned below.
Headers required[edit | edit source]
#include <XQSysInfo>
.pro file[edit | edit source]
All source files are automatically added to .pro file by carbide, so need to add the libraries and capability only.
symbian:LIBS += -letel3rdparty \
-lsysutil \
-lefsrv \
-lfeatdiscovery
symbian:TARGET.CAPABILITY = ReadDeviceData
Source[edit | edit source]
XQSysInfo* sysInfo = new XQSysInfo(this);
/* show network name on label */
ui.label->setText("Network Name: " + sysInfo->network());
/* show operator name on label */
ui.label_2->setText("Operator Name: " + sysInfo->operatorName());
Postconditions[edit | edit source]
The code snippet is expected to show Network name and Operator name on screen as showm bellow.
Download Code Example[edit | edit source]
- The Code Example will show network name and operator name on screen and is tested on Nokia 5800 XpressMusic.
pt:Archived:Como obter o nome da rede e da operadora, em Qt para Symbian