You need to add the following entries to your project file:
qmake Code:
  1. CONFIG += mobility
  2. MOBILITY += messaging
To copy to clipboard, switch view to plain text mode