StateTable.qml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. import QtQuick 2.11
  2. Item {
  3. id:root
  4. anchors.fill: parent
  5. anchors.margins: 10
  6. property int resultHeight: 25
  7. //property string titlestr
  8. property string state_str1
  9. property string state_str2
  10. //property string valvePressure_delta
  11. //property string negativeSysPressure
  12. //property string negativeValvePressure
  13. Column{
  14. anchors.centerIn: parent
  15. ResultDisplayText{
  16. width: root.width
  17. height: root.resultHeight
  18. color: "white"
  19. paraName: "系统运行状态:"
  20. paraResult:""
  21. paraUnit:""
  22. }
  23. ResultDisplayText{
  24. width: root.width
  25. height: root.resultHeight
  26. color: "#D2D5D9"
  27. paraName: ""
  28. paraResult:state_str1
  29. paraResult_fontColor: "green"
  30. paraUnit:""
  31. }
  32. ResultDisplayText{
  33. width: root.width
  34. height: root.resultHeight
  35. color: "#D2D5D9"
  36. paraName: ""
  37. paraResult:state_str2
  38. paraResult_fontColor: "green"
  39. paraUnit:""
  40. }
  41. /*
  42. ResultDisplayText{
  43. width: root.width
  44. height: root.resultHeight
  45. color: "#DFE2E6"
  46. paraName: "阀门密封性:"
  47. paraResult:valvePressure_delta
  48. paraUnit:"kPa"
  49. }
  50. ResultDisplayText{
  51. width: root.width
  52. height: root.resultHeight
  53. color: "white"
  54. paraName: ""
  55. paraResult:""
  56. paraUnit:""
  57. }
  58. ResultDisplayText{
  59. width: root.width
  60. height: root.resultHeight
  61. color: "white"
  62. paraName: "负压测试"
  63. paraResult:""
  64. paraUnit:""
  65. }
  66. ResultDisplayText{
  67. width: root.width
  68. height: root.resultHeight
  69. color: "#DFE2E6"
  70. paraName: "系统密封性:"
  71. paraResult:negativeSysPressure
  72. paraUnit:"kPa"
  73. }
  74. ResultDisplayText{
  75. width: root.width
  76. height: root.resultHeight
  77. color: "#D2D5D9"
  78. paraName: "阀门密封性:"
  79. paraResult:negativeValvePressure
  80. paraUnit:"kPa"
  81. }
  82. */
  83. }
  84. }