BreatheResult.qml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. import QtQuick 2.11
  2. import QtQuick.Controls 2.14
  3. Item {
  4. id:root
  5. anchors.fill: parent
  6. property string positiveOpenPressure1
  7. property string positiveOpenPressure2
  8. property string positiveOpenPressure3
  9. property string positiveSealPressure1
  10. property string positiveSealPressure2
  11. property string positiveSealPressure3
  12. property string negativeOpenPressure1
  13. property string negativeOpenPressure2
  14. property string negativeOpenPressure3
  15. property string negativeSealPressure1
  16. property string negativeSealPressure2
  17. property string negativeSealPressure3
  18. property string capsizeSealPressure1
  19. property string capsizeSealPressure2
  20. property string capsizeSealPressure3
  21. property alias swipeview:view
  22. SwipeView {
  23. id: view
  24. currentIndex: pageIndicator.currentIndex
  25. anchors.fill: parent
  26. clip: true
  27. Rectangle {
  28. Item {
  29. id:positiveReuslt
  30. anchors.fill: parent
  31. anchors.margins: 10
  32. property int resultHeight: 25
  33. Column{
  34. anchors.centerIn: parent
  35. ResultDisplayText{
  36. width: positiveReuslt.width
  37. height: positiveReuslt.resultHeight
  38. color: "white"
  39. paraName: "正压开启压力"
  40. paraResult:""
  41. paraUnit:""
  42. }
  43. ResultDisplayText{
  44. width: positiveReuslt.width
  45. height: positiveReuslt.resultHeight
  46. color: "#D2D5D9"
  47. paraName: "第一次:"
  48. paraResult:positiveOpenPressure1
  49. paraUnit:"kPa"
  50. }
  51. ResultDisplayText{
  52. width: positiveReuslt.width
  53. height: positiveReuslt.resultHeight
  54. color: "#DFE2E6"
  55. paraName: "第二次:"
  56. paraResult:positiveOpenPressure2
  57. paraUnit:"kPa"
  58. }
  59. ResultDisplayText{
  60. width: positiveReuslt.width
  61. height: positiveReuslt.resultHeight
  62. color: "#D2D5D9"
  63. paraName: "第三次:"
  64. paraResult:positiveOpenPressure3
  65. paraUnit:"kPa"
  66. }
  67. ResultDisplayText{
  68. width: positiveReuslt.width
  69. height: positiveReuslt.resultHeight
  70. color: "white"
  71. paraName: ""
  72. paraResult:""
  73. paraUnit:""
  74. }
  75. ResultDisplayText{
  76. width: positiveReuslt.width
  77. height: positiveReuslt.resultHeight
  78. color: "white"
  79. paraName: "正压密封压力"
  80. paraResult:""
  81. paraUnit:""
  82. }
  83. ResultDisplayText{
  84. width: positiveReuslt.width
  85. height: positiveReuslt.resultHeight
  86. color: "#DFE2E6"
  87. paraName: "第一次:"
  88. paraResult:positiveSealPressure1
  89. paraUnit:"kPa"
  90. }
  91. ResultDisplayText{
  92. width: positiveReuslt.width
  93. height: positiveReuslt.resultHeight
  94. color: "#D2D5D9"
  95. paraName: "第二次:"
  96. paraResult:positiveSealPressure2
  97. paraUnit:"kPa"
  98. }
  99. ResultDisplayText{
  100. width: positiveReuslt.width
  101. height: positiveReuslt.resultHeight
  102. color: "#DFE2E6"
  103. paraName: "第三次:"
  104. paraResult:positiveSealPressure3
  105. paraUnit:"kPa"
  106. }
  107. }
  108. }
  109. }
  110. Rectangle {
  111. Item {
  112. id:negativeReuslt
  113. anchors.fill: parent
  114. anchors.margins: 10
  115. property int resultHeight: 25
  116. Column{
  117. anchors.centerIn: parent
  118. ResultDisplayText{
  119. width: negativeReuslt.width
  120. height: negativeReuslt.resultHeight
  121. color: "white"
  122. paraName: "负压开启压力"
  123. paraResult:""
  124. paraUnit:""
  125. }
  126. ResultDisplayText{
  127. width: negativeReuslt.width
  128. height: negativeReuslt.resultHeight
  129. color: "#D2D5D9"
  130. paraName: "第一次:"
  131. paraResult:negativeOpenPressure1
  132. paraUnit:"kPa"
  133. }
  134. ResultDisplayText{
  135. width: negativeReuslt.width
  136. height: negativeReuslt.resultHeight
  137. color: "#DFE2E6"
  138. paraName: "第二次:"
  139. paraResult:negativeOpenPressure2
  140. paraUnit:"kPa"
  141. }
  142. ResultDisplayText{
  143. width: negativeReuslt.width
  144. height: negativeReuslt.resultHeight
  145. color: "#D2D5D9"
  146. paraName: "第三次:"
  147. paraResult:negativeOpenPressure3
  148. paraUnit:"kPa"
  149. }
  150. ResultDisplayText{
  151. width: negativeReuslt.width
  152. height: negativeReuslt.resultHeight
  153. color: "white"
  154. paraName: ""
  155. paraResult:""
  156. paraUnit:""
  157. }
  158. ResultDisplayText{
  159. width: negativeReuslt.width
  160. height: negativeReuslt.resultHeight
  161. color: "white"
  162. paraName: "负压密封压力"
  163. paraResult:""
  164. paraUnit:""
  165. }
  166. ResultDisplayText{
  167. width: negativeReuslt.width
  168. height: negativeReuslt.resultHeight
  169. color: "#DFE2E6"
  170. paraName: "第一次:"
  171. paraResult:negativeSealPressure1
  172. paraUnit:"kPa"
  173. }
  174. ResultDisplayText{
  175. width: negativeReuslt.width
  176. height: negativeReuslt.resultHeight
  177. color: "#D2D5D9"
  178. paraName: "第二次:"
  179. paraResult:negativeSealPressure2
  180. paraUnit:"kPa"
  181. }
  182. ResultDisplayText{
  183. width: negativeReuslt.width
  184. height: negativeReuslt.resultHeight
  185. color: "#DFE2E6"
  186. paraName: "第三次:"
  187. paraResult:negativeSealPressure3
  188. paraUnit:"kPa"
  189. }
  190. }
  191. }
  192. }
  193. Rectangle {
  194. Item {
  195. id:capsizeReuslt
  196. anchors.fill: parent
  197. anchors.margins: 10
  198. property int resultHeight: 25
  199. Column{
  200. anchors.centerIn: parent
  201. ResultDisplayText{
  202. width: capsizeReuslt.width
  203. height: capsizeReuslt.resultHeight
  204. color: "white"
  205. paraName: "倾覆密封压力"
  206. paraResult:""
  207. paraUnit:""
  208. }
  209. ResultDisplayText{
  210. width: capsizeReuslt.width
  211. height: capsizeReuslt.resultHeight
  212. color: "#D2D5D9"
  213. paraName: "90°:"
  214. paraResult:capsizeSealPressure1
  215. paraUnit:"kPa"
  216. }
  217. ResultDisplayText{
  218. width: capsizeReuslt.width
  219. height: capsizeReuslt.resultHeight
  220. color: "#DFE2E6"
  221. paraName: "180°:"
  222. paraResult:capsizeSealPressure2
  223. paraUnit:"kPa"
  224. }
  225. ResultDisplayText{
  226. width: capsizeReuslt.width
  227. height: capsizeReuslt.resultHeight
  228. color: "#D2D5D9"
  229. paraName: "270°:"
  230. paraResult:capsizeSealPressure3
  231. paraUnit:"kPa"
  232. }
  233. }
  234. }
  235. }
  236. }
  237. PageIndicator {
  238. id: pageIndicator
  239. interactive: true
  240. count: view.count
  241. currentIndex: view.currentIndex
  242. anchors.bottom: parent.bottom
  243. anchors.horizontalCenter: parent.horizontalCenter
  244. }
  245. }