Start_Container.qml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import QtQuick 2.0
  2. import QtQuick.FreeVirtualKeyboard 1.0
  3. import QtQuick.Window 2.0
  4. Rectangle {
  5. id: root
  6. implicitWidth: mainQml.implicitWidth
  7. implicitHeight: mainQml.implicitHeight
  8. Item {
  9. clip: true
  10. id: appContainer
  11. x: 0
  12. y: parent.height
  13. width: parent.width
  14. height: parent.height
  15. anchors.centerIn: parent
  16. // ***** Body *****
  17. Start {
  18. id: mainQml
  19. anchors.left: parent.left
  20. anchors.top: parent.top
  21. anchors.right: parent.right
  22. anchors.bottom: inputPanel.top
  23. Component.onDestruction: {
  24. Qt.inputMethod.hide();
  25. console.debug("Start_Container FENSTER ZU !!!");
  26. }
  27. }
  28. InputPanel {
  29. id: inputPanel
  30. z: 99
  31. y: appContainer.height
  32. anchors.left: parent.left
  33. anchors.right: parent.right
  34. states: State {
  35. name: "visible"
  36. when: Qt.inputMethod.visible
  37. PropertyChanges {
  38. target: inputPanel
  39. y: appContainer.height - inputPanel.height
  40. }
  41. }
  42. transitions: Transition {
  43. from: ""
  44. to: "visible"
  45. reversible: true
  46. ParallelAnimation {
  47. NumberAnimation {
  48. properties: "y"
  49. duration: 150
  50. easing.type: Easing.InOutQuad
  51. }
  52. }
  53. }
  54. }
  55. }
  56. }