• 4286阅读
  • 3回复

关于qt4.7 [复制链接]

上一主题 下一主题
离线yleesun
 

只看楼主 倒序阅读 楼主  发表于: 2010-05-28
我通过设计器或代码设置QlineEdit的inputMethodHints,为isDigitsOnly,但是不起作用?大家有没有知道怎么回事?
离线xlttap

只看该作者 1楼 发表于: 2010-05-28
你是想只输入数字吗?
那就用setValidator()
我简单我快乐
离线xlttap

只看该作者 2楼 发表于: 2010-05-28
我用的是qt4.4.3,还没有您的inputMethodHints这东西
我简单我快乐
离线抠涕
只看该作者 3楼 发表于: 2010-05-28
Note:

The flags are only hints, so the particular input method implementation is free to ignore them. If you want to be sure that a certain type of characters are entered, you should also set a QValidator on the widget.
快速回复
限100 字节
 
上一个 下一个