上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页
摘要: 使用QT编辑界面,其中带来很大方便的一点就是Qt中自带丰富的、种类齐全的类及其功能函数,程序员可以在编辑程序的过程中简单地直接调用。关于窗口关闭的操作,在这里指出常用的三个槽,即quit(),exit()以及close()。 首先说明窗口退出时,系统提示对话框的代码编辑。对主程序的退出,可以调... 阅读全文
posted @ 2015-12-29 22:06 Waichung 阅读(3623) 评论(0) 推荐(0) 编辑
摘要: function startsWith($haystack, $needle) { // search backwards starting from haystack length characters from the end return $needle === "" || str... 阅读全文
posted @ 2015-12-26 16:26 Waichung 阅读(1243) 评论(0) 推荐(0) 编辑
摘要: function convert_snmp_timeticks($timeticks) { if(!is_numeric($timeticks)) { return FALSE; } //如果是字符串类型,则先进行转换 if(is_string($tim... 阅读全文
posted @ 2015-12-26 11:02 Waichung 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 原文来自:http://blog.chinaunix.net/uid-7654720-id-3211234.htmlclass SNMP_Wrapper { protected $_host; protected $_community; protected $_version; ... 阅读全文
posted @ 2015-12-26 09:58 Waichung 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1.在.h文件中包含相关头文件#include #include 2.在.h文件中定义动作对象QAction *editQAction *del;3.在.h文件中声明私有方法void contextMenuEvent(QContextMenuEvent *e);4.在.h文件中增加右键点击后动作槽声... 阅读全文
posted @ 2015-12-25 22:48 Waichung 阅读(835) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页