T_ToggleSwitch.qml 723 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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:"ToggleSwitch"
  9. leftPadding:10
  10. rightPadding:10
  11. bottomPadding:20
  12. spacing: 0
  13. FluArea{
  14. Layout.fillWidth: true
  15. height: 68
  16. paddings: 10
  17. Layout.topMargin: 20
  18. Row{
  19. spacing: 30
  20. anchors.verticalCenter: parent.verticalCenter
  21. FluToggleSwitch{
  22. }
  23. FluToggleSwitch{
  24. text:"Text"
  25. }
  26. }
  27. }
  28. CodeExpander{
  29. Layout.fillWidth: true
  30. Layout.topMargin: -1
  31. code:'FluToggleSwitch{
  32. text:"Text"
  33. }'
  34. }
  35. }