Results 1 to 2 of 2

Thread: SortOrder for Contact model display label not giving value

  1. #1
    Join Date
    May 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    Symbian S60

    Smile SortOrder for Contact model display label not giving value

    Qt Code:
    1. sortOrders:[
    2. SortOrder {
    3. detail: ContactDetail.Name
    4. caseSensitivity: Qt.CaseInsensitive
    5. field:Name.DisplayLabel
    6. direction: Qt.AscendingOrder
    7. }
    8. ]
    To copy to clipboard, switch view to plain text mode 

    This is a sort order being used for sorting the contact model based on the display label. however the contacts are not getting sorted.
    Qt Code:
    1. Name.FirstName
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. Name.LastName
    To copy to clipboard, switch view to plain text mode 
    work perfectly but display label is not being read . Any help is much appreciated.

  2. #2
    Join Date
    May 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: SortOrder for Contact model display label not giving value

    Quote Originally Posted by vaibhav.sood View Post
    Qt Code:
    1. sortOrders:[
    2. SortOrder {
    3. detail: ContactDetail.Name
    4. caseSensitivity: Qt.CaseInsensitive
    5. field:Name.DisplayLabel
    6. direction: Qt.AscendingOrder
    7. }
    8. ]
    To copy to clipboard, switch view to plain text mode 

    This is a sort order being used for sorting the contact model based on the display label. however the contacts are not getting sorted.
    Qt Code:
    1. Name.FirstName
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. Name.LastName
    To copy to clipboard, switch view to plain text mode 
    work perfectly but display label is not being read . Any help is much appreciated.

    Tried this also still no success with
    Qt Code:
    1. sortOrders:[
    2. SortOrder {
    3. detail: ContactDetail.DisplayLabel
    4. caseSensitivity: Qt.CaseInsensitive
    5. field:Name.DisplayLabel.Label
    6. direction: Qt.AscendingOrder
    7. }
    8. ]
    To copy to clipboard, switch view to plain text mode 

    this should filter as mentioned in the documentation.

    but sadly it is not filtering

    Any help or someone facing the same issue replies is highly appreciated. to work a solution to this problem

Similar Threads

  1. QML Contact model search crash
    By Vaibhav.sood15 in forum Qt Quick
    Replies: 5
    Last Post: 15th October 2012, 07:08
  2. Qwt display coordinates label
    By Jean-Luc in forum Qwt
    Replies: 2
    Last Post: 13th February 2012, 11:08
  3. display number on label
    By aj2903 in forum Qt Programming
    Replies: 4
    Last Post: 12th March 2009, 08:24
  4. Display a Label on top of a QGlWidget
    By Lele in forum Qt Programming
    Replies: 3
    Last Post: 4th February 2008, 17:11
  5. Setting/getting sortcolumn/sortorder
    By Michiel in forum Qt Programming
    Replies: 3
    Last Post: 27th May 2007, 21:39

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.