ResultDisplayText.qml 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import QtQuick 2.0
  2. Rectangle{
  3. property string paraName:""
  4. property string paraName_fontColor:"#272727"
  5. property string paraResult:""
  6. property string paraResult_fontColor:"#272727"
  7. property string paraUnit:""
  8. property string paraUnit_fontColor:"#272727"
  9. Row{
  10. anchors.verticalCenter: parent.verticalCenter
  11. spacing: 10
  12. Text {
  13. color:paraName_fontColor
  14. font.bold: true
  15. font.pixelSize: 20
  16. text: paraName
  17. }
  18. Text {
  19. color:paraResult_fontColor
  20. font.bold: true
  21. font.pixelSize: 20
  22. text: paraResult
  23. }
  24. }
  25. Text {
  26. anchors.verticalCenter: parent.verticalCenter
  27. anchors.right: parent.right
  28. anchors.rightMargin: 5
  29. color:paraUnit_fontColor
  30. font.bold: true
  31. font.pixelSize: 20
  32. text: paraUnit
  33. }
  34. }