1
当键盘处于活动状态时,我想移动弹出窗口,因为现在键盘会覆盖弹出窗口。如何知道键盘的大小以正确移动弹出窗口?当设备的(安卓)键盘处于活动状态时弹出弹出菜单
Popup {
id: popupName
contentWidth: parent.width/2
contentHeight: parent.height/2
x: parent.width/2 - popupName.width/2
y: parent.height/2 - popupName.height/2
background: Rectangle {
color: "#424242"
}
不是这样的,键盘在没有停靠在屏幕底部时会浮动,如下所示:http://i.imgur.com/E4xBDTY.png – GrecKo