Active Topics

 


Reply
Thread Tools
Posts: 7 | Thanked: 0 times | Joined on Nov 2010
#1
I am a newbie in Qt, and trying to acquaint with it by writing some simple code using MessagingAPI to get only the number of SMS.

Here is my code:

QMessageFilter filter(QMessageFilter::byType(QMessage::Sms));
int number=QMessageManager().countMessages(filter);

I think it's really simple , but still doesn't work and i don't know what wrong in my though. Can anybody help me???
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#2
what does not work?
how do you start this application?
be sure the user who runs this application
(not root, not the developer user from the madde
devel environment)
really has some messages.
 

The Following User Says Thank You to nicolai For This Useful Post:
Posts: 7 | Thanked: 0 times | Joined on Nov 2010
#3
Thanks to your help, i dealed with it
I find that i have to change account into "user" as you said to work with Message .
It seems to be sophisticated for a newbie like me and I don't know why documentation of Qt don't mention about that so it made me like crazy man
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:21.