Reply
Thread Tools
Posts: 42 | Thanked: 12 times | Joined on Dec 2009 @ Kuopio, Finland
#1
Hello,

I am trying to send SMS message with QtMobility QMessageService and it works but opens up the messaging application (conversations). Is there a way to send message without opening conversations? Or preventing conversations from catching inbound messages?

Here is my code (Stolen from web example):

QtMobility::QMessage message;
message.setType(QtMobility::QMessage::Sms);
message.setTo(QtMobility::QMessageAddress(QtMobili ty::QMessageAddress::Phone,address));
message.setBody(body);

QtMobility::QMessageService s;
if (s.send(message)) {
qDebug()<<"Success!";
}
else {
qDebug()<<"Nein, did not succed " }
 
CepiPerez's Avatar
Posts: 1,023 | Thanked: 4,421 times | Joined on Feb 2010 @ Argentina
#2
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#3
That python example seems to use same approach...
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#4
the python version does also open the conversation window, I am trying to get it disabled as soon as I have some time to learn more about qtmobility.
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
JapieB's Avatar
Posts: 59 | Thanked: 42 times | Joined on Nov 2009 @ Wageningen (NL)
#5
Has anyone made any progress on this issue?

It is very confusing for a user to see the conversations app pop up while the user has nothing to do...

For now, I will just use the compose method instead of the send method of QMessageService. That way the user can understand why the conversations app pops up: he has to click the SEND button to actually send the SMS.
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#6
I had no luck with it with python. I am trying to learn qt and try if it would cure the umlaut problem I have with python. but changes for stopping the window popping out seem pretty slim unless there is a workaround/hack/etc...
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
Posts: 3 | Thanked: 0 times | Joined on Feb 2010 @ Edmonton, Canada
#7
Any success?I have the same problem.
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:44.