Qt Code:
  1. import QtQuick 1.0
  2.  
  3. Rectangle
  4. {
  5. id: sas
  6. width: 200
  7. height: 100
  8. color: "red"
  9.  
  10. Text
  11. {
  12. anchors.centerIn: parent
  13. text: "Hello, World!"
  14. }
  15. }
  16.  
  17. Rectangle
  18. {
  19. id: sasas
  20. width: 200
  21. height: 100
  22. color: "red"
  23.  
  24. Text
  25. {
  26. anchors.centerIn: parent
  27. text: "Hello,fdsfdsf!"
  28. }
  29. }
To copy to clipboard, switch view to plain text mode 


This, when run with qmlviewer, says:

Qt Code:
  1. Syntax error Rectangle {
  2. ^
To copy to clipboard, switch view to plain text mode 

What's the way out?