Hi,
Here is the program i am working on to display the number of messages in the sms inbox
---------------------------------------------------------------------------------------
#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"
#include <QPushButton>
#include <QWidget>
#include <QHBoxLayout>
#include <QDateTime>
#include <QCheckBox>
#include <QMessageFilter>
#include <QMessageDataComparator>
#include <QMessageManager>
#include <QMessageId>
#include <QMessageSortOrder>
#include <QMessageService>
#include <QCalendarWidget>
#include <QMessage>
QTM_USE_NAMESPACE
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QMessageIdList list=QMessageManager().queryMessages();
QWidget *window = new QWidget;
int count = list.count();
QPushButton *button1 = new QPushButton(QString::number(count));
QHBoxLayout *layout = new QHBoxLayout;
layout->addWidget(button1);
window->setLayout(layout);
window->show();
return app.exec();
}
-----------------------------------------------------------------------
the above program run on the device nokia e72, but the value of count is always 0
Let me know if you need more information.
Regards,
Rohit



