Namespaces
Variants
Actions
Revision as of 04:19, 11 October 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:Get model number, manufacturer and software version programmatically in Qt

Jump to: navigation, search
Archived.png
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The cross platform Qt Mobility QSystemDeviceInfo API should be used instead. See Getting started with Qt Mobility APIs for more information.
Article Metadata

Code Example
Tested with
Devices(s): Nokia 5800 XpressMusic

Compatibility
Platform(s): S60 3rd Edition, FP1, FP2
S60 5th Edition

Article
Keywords: ,XQSysInfo::model(),XQSysInfo::manufacturer(),XQSysInfo::softwareVersion()
Created: savaj (24 Jun 2009)
Last edited: hamishwillee (11 Oct 2012)


Contents

Overview

Archived:This code snippets shows how to get Model number, Manufacturer and Software Version of device in Qt. The XQSysInfo class provides information about the device. model() method of class XQSysInfo return Model number. manufacturer() method of class XQSysInfo return Manufacturer. softwareVersion() method of class XQSysInfo return Software Version.

This snippet requires ReadDeviceData capabilities. Self-signing is not possible because a Developer Certificate is needed.

Preconditions

Headers required

 #include <XQSysInfo>

.pro file

symbian:LIBS += -letel3rdparty \
-lsysutil \
-lefsrv \
-lfeatdiscovery
 
symbian:TARGET.CAPABILITY = ReadDeviceData

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

  • The Code Example will show Model number, Manufacturer and Software Version on screen and is tested on Nokia 5800 XpressMusic.


135 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved