hi.

i have this qml button. how can i change border.width in c++ code?

Qt Code:
  1. import QtQuick 1.1
  2.  
  3. Rectangle {
  4. id: button
  5. width: 150
  6. height: 40
  7. radius: 10
  8. gradient: Gradient {
  9. GradientStop {
  10. position: 0.41
  11. color: "#008000"
  12. }
  13.  
  14. GradientStop {
  15. position: 1
  16. color: "#394f2f"
  17. }
  18. }
  19. clip: true
  20. smooth: true
  21. border.color: "red"
  22. border.width: 0
  23.  
  24. scale: 1
  25. rotation: 0
  26.  
  27. signal qmlClicked(string msg)
  28. signal clicked()
  29.  
  30. Text {
  31. id: name
  32. x: 77
  33. y: 27
  34. text: qsTr("Name")
  35. font.pointSize: 10
  36. anchors.verticalCenterOffset: 9
  37. anchors.horizontalCenterOffset: 26
  38. style: Text.Sunken
  39. verticalAlignment: Text.AlignVCenter
  40. horizontalAlignment: Text.AlignHCenter
  41. anchors.centerIn: parent; color: "white"
  42. }
  43. }
To copy to clipboard, switch view to plain text mode 

i can change text, and other things but no border.width