Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Listing text messages
Forum Updated to NodeBB v4.3 + New Features

Listing text messages

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    viral.parmar
    wrote on last edited by
    #1

    hi,
    I have been searching and i got a code shown below..
    @
    Code:
    import Qt 4.7
    import QtMobility.messaging 1.1

    Rectangle {
    width: 320
    height: 480
    ListView {
    id: list
    anchors.fill: parent
    model: MessageModel {
    sortBy: MessageModel.Timestamp
    sortOrder: MessageModel.DescendingOrder
    }
    delegate: Item {
    id: wrapper
    height: 32; width: list.width
    Text { id: subjText; text: subject; font.pixelSize: 13; x: 3 }
    Text {
    text: sender; color: "gray"; font.pixelSize: 9
    x: 3; width: parent.width-100;
    anchors.top: subjText.bottom; anchors.topMargin: 3
    elide: Text.ElideRight
    }
    Text {
    text: date; color: "gray"; font.pixelSize: 9
    anchors.right: parent.right
    anchors.top: subjText.bottom; anchors.topMargin: 3
    }
    }
    }
    }@
    Doing on-device debugging i am unable to get the list of text message received...
    I have symbian Anna Running on my E7 , and recently i came to know that Mobility api is upgraded for symbian Anna. So is this a reason i am unable to get list of text messages ??

    Regards
    Viral Parmar

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VK2FH
      wrote on last edited by
      #2

      Probably too late to reply to this post since it was posted several months ago but I did play around with your code and found I needed to modify the xxx.pro file to display messages otherwise I ended up with a blank screen such as you did.

      Try adding 'ReadUserData' as below;

      Allow network access on Symbian

      symbian:TARGET.CAPABILITY += NetworkServices ReadUserData

      Hope this helps :-)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved