04-23-2014 12:13 PM
Any idea how to sort the calendar events based on the event's date, that is, the event nearer should be at the top of the list? Any api to do the same. I'm trying hard to get it done.
Solved! Go to Solution.
04-24-2014 04:02 AM
EventSearchParameters searchParameters; QPair<SortField::Type,bool> sort; sort.first = bb::pim::calendar::SortField::StartTime; sort.second = false; searchParameters.setSort(sort);
now pass this as a parameter to the events() method of the CalendarService class and you have the sorted events based on starttime
if you want to reverse the order, set the bool value to true