Hi all!
I created simple app as picture below
threading.png
code in file main.qml
Qt Code:
  1. import QtQuick 2.3
  2. import QtQuick.Controls 1.2
  3.  
  4. ApplicationWindow {
  5. visible: true
  6. width: 640
  7. height: 480
  8. Rectangle{
  9. color: "red"
  10. width: 100
  11. height: 100
  12. anchors.centerIn: parent
  13. Timer{
  14. interval: 30
  15. running: true
  16. repeat: true
  17. onTriggered: {
  18. _processdata.calculator()
  19. }
  20. }
  21. }
  22. }
To copy to clipboard, switch view to plain text mode 
I have one component is a rectangle. In rectangle have timer and 30ms it Triggered to call function _processdata.calculator() from class C++
It's works fine if I put less rectangle(1- 100 rectangle). But I put about 500 - 1000 rectangle in my app, It became slow and when I move app, it is shaking shock
Cause is all rectangle call function _processdata.calculator() time.
How to it works fine when I put 500 - 1000 rectangle in my app? Please help me!