I'm updating the qml Listview from c++ like;

in main.cpp;

listeci frmlisteci;
engine.rootContext()->setContextProperty("listeElemanlar", &frmlisteci.listeElemanlar);

Qt Code:
  1. in Liste.qml;
  2.  
  3.  
  4. ListView{
  5. id: listeciElemanlar
  6. anchors.fill: parent
  7. model: listeElemanlar
  8. delegate: Text{
  9. text: display
  10. verticalAlignment: Text.AlignBottom
  11. width : parent.width
  12. color: textRengi
  13. font.pointSize: 30
  14. leftPadding: 20
  15. }}
  16.  
  17. in listeci.h;
  18.  
  19. public:
  20. QStringListModel listeElemanlar;
  21. private:
  22. QStringList userAyarlari;
  23.  
  24. in listeci.cpp;
  25.  
  26. listeci::listeci(QObject *parent) : QObject(parent)
  27. {
  28.  
  29. // Kullan?c? ayarlar? elemanlar?
  30. userAyarlari.append("Kullan?c? ayar? 01");
  31. userAyarlari.append("Kullan?c? ayar? 02");
  32. userAyarlari.append("Kullan?c? ayar? 03");
  33. userAyarlari.append("Kullan?c? ayar? 04");
  34. userAyarlari.append("Kullan?c? ayar? 05");
  35. userAyarlari.append("Kullan?c? ayar? 06");
  36. userAyarlari.append("Kullan?c? ayar? 07");
  37. userAyarlari.append("Kullan?c? ayar? 08");
  38. userAyarlari.append("Kullan?c? ayar? 09");
  39. userAyarlari.append("Kullan?c? ayar? 10");
  40. userAyarlari.append("Kullan?c? ayar? 11");
  41. userAyarlari.append("Kullan?c? ayar? 12");
  42. userAyarlari.append("Kullan?c? ayar? 13");
  43. userAyarlari.append("Kullan?c? ayar? 14");
  44. userAyarlari.append("Kullan?c? ayar? 15");
  45. userAyarlari.append("Kullan?c? ayar? 16");
  46. userAyarlari.append("Kullan?c? ayar? 17");
  47. userAyarlari.append("Kullan?c? ayar? 18");
  48. userAyarlari.append("Kullan?c? ayar? 19");
  49. }
  50. void listeci::listeGuncelle()
  51. {
  52. listeElemanlar.setStringList(userAyarlari);
  53. }
To copy to clipboard, switch view to plain text mode 


with these lines, I can successfully create a list and show on qml Listview, when I clicked on a button on qml side by calling

Qt Code:
  1. frmlisteci.listeGuncelle()
To copy to clipboard, switch view to plain text mode 

But when I do this procedure after a mount,( we can say refreshing the list) the code becoming slow, and waiting on this line:

Qt Code:
  1. listeElemanlar.setStringList(userAyarlari);
To copy to clipboard, switch view to plain text mode 

What can be the reason ?