T_Progress.qml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import QtQuick
  2. import QtQuick.Layouts
  3. import QtQuick.Window
  4. import QtQuick.Controls
  5. import FluentUI
  6. import "../component"
  7. FluScrollablePage{
  8. title:"Progress"
  9. leftPadding:10
  10. rightPadding:10
  11. bottomPadding:20
  12. spacing: 0
  13. FluArea{
  14. Layout.fillWidth: true
  15. Layout.topMargin: 20
  16. height: 260
  17. paddings: 10
  18. ColumnLayout{
  19. spacing: 20
  20. anchors{
  21. verticalCenter: parent.verticalCenter
  22. left: parent.left
  23. }
  24. FluProgressBar{
  25. }
  26. FluProgressRing{
  27. }
  28. FluProgressBar{
  29. id:progress_bar
  30. indeterminate: false
  31. }
  32. FluProgressRing{
  33. id:progress_ring
  34. indeterminate: false
  35. }
  36. FluSlider{
  37. value:50
  38. onValueChanged:{
  39. progress_bar.progress = value/100
  40. progress_ring.progress = value/100
  41. }
  42. }
  43. }
  44. }
  45. CodeExpander{
  46. Layout.fillWidth: true
  47. Layout.topMargin: -1
  48. code:'FluProgressBar{
  49. }
  50. FluProgressRing{
  51. }
  52. FluProgressBar{
  53. indeterminate: false
  54. }
  55. FluProgressRing{
  56. indeterminate: false
  57. }'
  58. }
  59. }