在对话框中使用虚拟键盘的QML问题 [英] QML problem using virtual keyboard inside a dialog

查看:170
本文介绍了在对话框中使用虚拟键盘的QML问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为具有触摸屏但没有物理键盘的设备开发Qt项目(v5.13.0).虚拟键盘在应用程序窗口中可以正常工作,只要单击输入组件,它就会显示.

I am working on a Qt project (v5.13.0) for a device that has a touchscreen but no physical keyboard. Virtual keyboard works fine in application windows, showing whenever a input component is clicked.

我的问题是当我想在对话框(实际上是弹出窗口)中填充输入组件时.键盘的确显示了,但是在主窗口的对话框后面",所以我不能使用它.

My problem is when I want to fill an input component in a dialog (actually a Popup). The keyboard does show up, but "behind" the dialog, on the main window, so I cannot use it.

我确定我缺少某些东西,例如,它是组件的成员,但我不知道它是什么.

I'am sure I am missing something, a component member for exemple, but I can't figure out what it is.

有人对如何在对话框中访问虚拟键盘有想法吗?

Does someone have an idea about how to make the virtual keyboard accessible in my dialog ?

推荐答案

我认为

I think that this issue is tracked by https://bugreports.qt.io/browse/QTBUG-56918, and was fixed in 5.15.

如果您出于某种原因不能使用5.15,则有几种潜在的解决方法.

There are several potential workarounds discussed there if you can't use 5.15 for whatever reason.

这篇关于在对话框中使用虚拟键盘的QML问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆