博客
关于我
【Qt】QLineEdit点击调用surface触摸键盘
阅读量:640 次
发布时间:2019-03-14

本文共 355 字,大约阅读时间需要 1 分钟。

通过研究Qt框架,我发现使用不同回显模式可以触发触摸键盘。设置QLineEdit的回显模式为NoEchoPassword,可以让输入框弹出虚拟键盘,类似Windows的osk.exe功能。这是因为在这些模式下,输入框会依赖触摸键盘来处理输入事件。

寻找触发键盘的机制时,我注意到可能涉及setEchoMode方法的实现或相关插件,如QMac noqa Secure Keyboard。然而,现有信息不足以了解其具体功能,可能是平台或版本限制导致。可能需要深入查看源代码或咨询Qt社区获取更多细节。

总结:通过调整QLineEdit的回显模式,可以在需要时弹出触摸键盘。这一功能类似于Windows的osk.exe,适用于需要虚拟键盘交互的场景。进一步的研究可能需要查看Qt的源代码或联系Qt社区获取相关信息。

转载地址:http://fiflz.baihongyu.com/

你可能感兴趣的文章
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>
No new migrations found. Your system is up-to-date.
查看>>
No qualifying bean of type XXX found for dependency XXX.
查看>>
No resource identifier found for attribute 'srcCompat' in package的解决办法
查看>>
no session found for current thread
查看>>
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
查看>>
NO.23 ZenTaoPHP目录结构
查看>>
no1
查看>>
NO32 网络层次及OSI7层模型--TCP三次握手四次断开--子网划分
查看>>
NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
查看>>