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. Retrieving text messages from inbox
Forum Updated to NodeBB v4.3 + New Features

Retrieving text messages from inbox

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.6k 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

    tried a lot to display list of all message in my inbox , below is code i have tried with ..
    @import Qt 4.7
    import com.nokia.symbian 1.0
    import QtMobility.messaging 1.1

    Window {
    id: root
    ListView {
    id: list
    anchors.fill: parent
    model: MessageModel {
    sortBy: MessageModel.Timestamp
    sortOrder: MessageModel.DescendingOrder
    }
    delegate: listDelegate
    }
    Component {
    id: listDelegate

              Item {
                  id: listItem
    
                  // The texts to display
                  Column {
                      anchors {
                          left:  listItem.paddingItem.left
                          top: listItem.paddingItem.top
                          bottom: listItem.paddingItem.bottom
                          right: checkbox.left
                      }
    
                      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
                                   }
                  }
    
        
    
    
    
    
    
                 }
    

    }
    }@
    nothing appears on window screen..

    Regards
    Viral Parmar

    1 Reply Last reply
    0
    • N Offline
      N Offline
      njeisecke
      wrote on last edited by
      #2

      Could it be that listItem needs a size? Try to use the column's size as the listItems size, remove the anchors.

      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