首页| 论坛| 消息

标题:qml中输入汉字时输入法联想的问题
作者:xywxha1
日期:2014-08-03 00:04
内容:

在制作一个登录框的时候,TextInput设置为password ,但是如果切换到中文输入法会再TextInput显示明码,而且联想框也会有相应的字母,请问怎么做到不管什么输入法,只要是在这个TextInput里面输入都是马上就变成暗文,切输入法的联想框不会弹出来!


#1 [xywxha1 08-03 00:14]
TextInput{
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
width: 300
height: 50
text:"Accou"
clip:true
echoMode: TextInput.Password
inputMethodHints: Qt.ImhNoPredictiveText || Qt.ImhNoAutoUppercase
}
加了inputMethodHints也不行,谁知道该怎么做
#2 [彩阳 08-03 00:47]
是的,它失效了,目前还没有找到好的方法,看看同名的QLineEdit也是不是同样的原因。明天我去jira上查查有没有人提了这个Bug。
#3 [xywxha1 08-03 01:15]
是这样啊,如果有结果了告诉我下,多谢了
#4 [cavendish 08-05 04:13]
去报bug吧...
https://bugreports.qt-project.org/
https://qt-project.org/wiki/ReportingBugsInQt
#5 [seanyxie 08-05 11:38]
这个是IM模块回显的问题

<< 1 2 >> (1/2)

回复 发表
主题 版块