App.qml 813 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright (C) 2021 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick 6.2
  4. import Cabinet
  5. import QtQuick.VirtualKeyboard 6.2
  6. Window {
  7. width: mainScreen.width
  8. height: mainScreen.height
  9. visible: true
  10. title: "Cabinet"
  11. Screen01 {
  12. id: mainScreen
  13. }
  14. InputPanel {
  15. id: inputPanel
  16. property bool showKeyboard : active
  17. y: showKeyboard ? parent.height - height : parent.height
  18. Behavior on y {
  19. NumberAnimation {
  20. duration: 200
  21. easing.type: Easing.InOutQuad
  22. }
  23. }
  24. anchors.leftMargin: Constants.width/10
  25. anchors.rightMargin: Constants.width/10
  26. anchors.left: parent.left
  27. anchors.right: parent.right
  28. }
  29. }