Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
Get list of installed applications and its UID in Qt
Deprecated:This code snippets shows how to list the names and UIDs of installed applications on device using the Qt Mobile Extension XQInstaller.
S60 5th Edition
symbian:LIBS += -lswinstcli \
symbian:TARGET.CAPABILITY += TrustedUI
XQInstaller* m_installer = new XQInstaller(this);
/* Get List of applications.
* type of m_applications is QMap<QString, uint>.
m_applications = m_installer->applications();
/* Get List of application names
*type of m_appNames is QList<QString>
m_appNames = m_applications.keys();
/* Get List of application UID in decimal.
*type of m_appUID is QList<uint>
m_appUID = m_applications.values();
for (int i = 0; i < m_appNames.count(); i++)
/* convert UID from decimal to hex and then string. */
/* append name and UID to string */
QString string(m_appNames.at(i)+" UID:"+ str);
/* append string to list widget to display on screen */
/* Let's make the UI scale so that we can scroll it. */
QScrollArea* scrollArea = new QScrollArea;
/* setCentralWidget() takes ownership of scrollArea and deletes it at the appropriate time. so no need to delete scrollArea */
- The Code Example will show a list of all installed application with UID. The application is tested on Nokia 5800 XpressMusic.