Hey,
I have a problem with QML Controls:
I try to connect two TextAreas via Network:
Qt Code:
  1. TextArea{
  2. id: textarea
  3. onTextChanged: {
  4. //send message
  5. }
  6. }
  7. //onMessage:
  8. textarea.text = message;
To copy to clipboard, switch view to plain text mode 

The Problem is that
Qt Code:
  1. onTextChanged
To copy to clipboard, switch view to plain text mode 
is although triggered if the text is set by a message. By that, a new Message is generated, which causes the generation of an other Massage on the other side an so on...

My approach was to add a property to detect, the event was triggered manually but it won't work:
Qt Code:
  1. TextArea{
  2. property bool surpress: false
  3. function setPassive(newText){
  4. surpress = true;
  5. text = newText;
  6. }
  7. id: textarea
  8. onTextChanged: {
  9. if(surpress){
  10. surpress = false;
  11. return;
  12. }
  13. //send message
  14. }
  15. }
  16. //onMessage:
  17. textarea.setPassive(message);
To copy to clipboard, switch view to plain text mode 


Any Ideas?

best regards,
Jakob