摘要: 原文:http://blog.sina.com.cn/s/blog_6e198d4f0100mxbg.html1。输入int类型QValidator *validator=new QIntValidator(100,999,this);QLineEdit *edit=new QLineEdit(this);edit->setValidator(validator);也可以表示成 QLineEdit *edit=new QLineEdit(this); edit->setValidator(new QIntValidator(100,999,this));2.输入double类型QL 阅读全文
posted @ 2013-10-12 17:16 Leo Forest 阅读(1820) 评论(0) 推荐(0) 编辑
摘要: Poco Exception提供的宏挺方便的。。#include "Poco/Exception.h"#include POCO_DECLARE_EXCEPTION( , MyException, Poco::Exception )POCO_DECLARE_EXCEPTION( , MyFatalException, Poco::Exception )POCO_IMPLEMENT_EXCEPTION( MyException, Poco::Exception, "Something really bad happened..." )POCO_IMPLEM 阅读全文
posted @ 2013-10-12 16:25 Leo Forest 阅读(855) 评论(0) 推荐(0) 编辑