摘要: http://www.cnblogs.com/hellovenus/p/5183593.html QLineEdit是一个单行文本编辑控件。 使用者可以通过很多函数,输入和编辑单行文本,比如撤销、恢复、剪切、粘贴以及拖放等。 通过改变QLineEdit的 echoMode() ,可以设置其属性,比如 阅读全文
posted @ 2017-10-16 18:43 wjbooks 阅读(21883) 评论(0) 推荐(2)
摘要: qt的三种验证类: 1。输入int类型 QValidator *validator=new QIntValidator(100,999,this); QLineEdit *edit=new QLineEdit(this); edit->setValidator(validator); 也可以表示成 阅读全文
posted @ 2017-10-16 18:35 wjbooks 阅读(5081) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/xinxue/p/6840315.html Qt 之 QtConcurrent Qt 之 QtConcurrent 本文以 Qt 中的 QtConcurrent::run() 函数为例,介绍如何将函数运行在单独的某一个线程中。 1 QtConcurren 阅读全文
posted @ 2017-10-16 18:22 wjbooks 阅读(4987) 评论(0) 推荐(0)