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. Thanks for all your past and future contributions.

Archived Talk:Send SMS using Qt Mobility

From Wiki
Jump to: navigation, search


This code is only appropriate for 1.0-tp. The QMessageServiceAction class is not in 1.0 and higher. Consider

int main(int argc, char** argv)
   QCoreApplication consoleApplication(argc,argv);
   QMessage testMessage;
   testMessage.setBody("Hello there from test program");
   QMessageService testService;
   bool result = testService.send(testMessage);
   std::cout << "Send message result " << (result ? "Ok" : "Failed") << std::endl;
   return result ? 0 : 1;

an example from qt mobility bug 64


Capability for sending SMS

You need to add NetworkServices to the capability list. Man this silly bug costed me 3 days!!! :((

This page was last modified on 30 April 2013, at 05:58.
9 page views in the last 30 days.