Sorting the added QML elements in the ListModel
I am writing an alarm clock in QML, I am required to sort the alarms in ascending order (depending on the date or time (if there are several alarms on the same day).
I've done the sorting for existing alarm clocks (which are available from the very beginning. View the Alarm file Model.xml, the sort Model() function )
I need to sort the new alarms (which we add) in ascending order (depending on the date or time (if on the same day))
I attach the code below, this is my whole project, going to Qt Creator.
I have only 2 additions sorted and only by year, what should I do?
Рекомендуємо хостинг TIMEWEB
Стабільний хостинг, на якому розміщується соціальна мережа EVILEG. Для проектів на Django радимо VDS хостинг.Вам це подобається? Поділіться в соціальних мережах!
- Дмитрий
- 07 травня 2024 р. 21:40
C++ - Тест 004. Указатели, Массивы и Циклы
- Результат:60бали,
- Рейтинг балів-1
- dsfs
- 26 квітня 2024 р. 16:56
C++ - Тест 004. Указатели, Массивы и Циклы
- Результат:80бали,
- Рейтинг балів4