Archived:Get model number, manufacturer and software version programmatically in Qt
Jump to navigation
Jump to search
Overview[edit | edit source]
This snippet requires ReadDeviceData capabilities. Self-signing is not possible because a Developer Certificate is needed.
Preconditions[edit | edit source]
- Download and install the Qt SDK
- Go through this article: How to use Mobile Extension APIs in Qt
Headers required[edit | edit source]
#include <XQSysInfo>
.pro file[edit | edit source]
symbian:LIBS += -letel3rdparty \
-lsysutil \
-lefsrv \
-lfeatdiscovery
symbian:TARGET.CAPABILITY = ReadDeviceData
Source[edit | edit source]
XQSysInfo *sysInfo = new XQSysInfo(this);
/* show Model, Manufacturer and Software Version on labels*/
ui.label->setText("Model: " + sysInfo->model());
ui.label_2->setText("Manufacturer: " + sysInfo->manufacturer());
ui.label_3->setText("Software Version: " + sysInfo->softwareVersion());
Code Example[edit | edit source]
- The Code Example will show Model number, Manufacturer and Software Version on screen and is tested on Nokia 5800 XpressMusic.