StupidBeauty
Read times:426Posted at:Thu Jul 21 23:13:54 2011
- no title specified

Wt3.1.9文档翻译:Wt::WDoubleValidator类参考,Wt::WDoubleValidator Class Reference

详细描述

一个用来校验用户输入的浮点数的校验器

这个校验器会检验出用户输入的是否是在预设的范围内的双精度浮点数

使用示例:

Wt::WLineEdit *lineEdit = new Wt::WLineEdit(this);

Wt::WDoubleValidator *validator = new Wt::WDoubleValidator();

lineEdit->setValidator(validator);

lineEdit->setText("13.42");

国际化i18n

可通过替换掉以下本地化键的默认值的方法来对这个类 中使用的字符串进行翻译:

Wt.WDoubleValidator.NotANumber: 必须是一个数字

Wt.WDoubleValidator.TooSmall: 数字必须比{1}大

Wt.WDoubleValidator.BadRange: 数字必须在{1}到{2}的范围中

Wt.WDoubleValidator.TooLarge: 数字必须比{1}小

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4