QML虚拟键盘控制弹出隐藏

网友投稿 895 2022-11-07

QML虚拟键盘控制弹出隐藏

QML虚拟键盘控制弹出隐藏

import QtQuick 2.0import QtQuick.Controls 1.3import QtQuick.Window 2.2import QtQuick.Controls.Styles 1.2import "../qml/common"import QtQuick.VirtualKeyboard 2.1Rectangle { color: "#3A3223" id:p_DataBackup x:0 y:0 width: 1024 height: 768 signal closeClickedSignal CQLPushButton { id: button x: 820 y: 572 width: 158 height: 58 m_text: qsTr("关闭") onClickedSignal: { console.log("ddddddddd"); closeClickedSignal(); } } InputPanel { id: inputPanel visible: true y:768 anchors.left: parent.left anchors.right: parent.right states: State { name: "visible" when: inputPanel.active PropertyChanges { target: inputPanel y: 768-inputPanel.height } } transitions: Transition { from: "" to: "visible" reversible: true ParallelAnimation { NumberAnimation { properties: "y" duration: 250 easing.type: Easing.InOutQuad } } } } TextField { id: textField x: 292 y: 224 placeholderText: qsTr("Text Field") }}

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:最新版编译libjpeg.lib
下一篇:qt关于中文乱码解决方法
相关文章

 发表评论

暂时没有评论,来抢沙发吧~