会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Waichung
Welcome to my blog!
博客园
首页
联系
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
20
下一页
2015年12月29日
Qt的quit(),exit()以及close()事件捕获
摘要: 使用QT编辑界面,其中带来很大方便的一点就是Qt中自带丰富的、种类齐全的类及其功能函数,程序员可以在编辑程序的过程中简单地直接调用。关于窗口关闭的操作,在这里指出常用的三个槽,即quit(),exit()以及close()。 首先说明窗口退出时,系统提示对话框的代码编辑。对主程序的退出,可以调...
阅读全文
posted @ 2015-12-29 22:06 Waichung
阅读(4286)
评论(0)
推荐(0)
2015年12月26日
PHP startsWith and endsWith
摘要: function startsWith($haystack, $needle) { // search backwards starting from haystack length characters from the end return $needle === "" || str...
阅读全文
posted @ 2015-12-26 16:26 Waichung
阅读(1250)
评论(0)
推荐(0)
PHP 转换snmp的时间格式
摘要: function convert_snmp_timeticks($timeticks) { if(!is_numeric($timeticks)) { return FALSE; } //如果是字符串类型,则先进行转换 if(is_string($tim...
阅读全文
posted @ 2015-12-26 11:02 Waichung
阅读(660)
评论(0)
推荐(0)
PHP 的snmp各个版本的Wrapper封装类
摘要: 原文来自:http://blog.chinaunix.net/uid-7654720-id-3211234.htmlclass SNMP_Wrapper { protected $_host; protected $_community; protected $_version; ...
阅读全文
posted @ 2015-12-26 09:58 Waichung
阅读(246)
评论(0)
推荐(0)
2015年12月25日
Qt5 添加右键菜单简单测试
摘要: 1.在.h文件中包含相关头文件#include #include 2.在.h文件中定义动作对象QAction *editQAction *del;3.在.h文件中声明私有方法void contextMenuEvent(QContextMenuEvent *e);4.在.h文件中增加右键点击后动作槽声...
阅读全文
posted @ 2015-12-25 22:48 Waichung
阅读(855)
评论(0)
推荐(1)
上一页
1
2
3
4
5
6
7
8
9
10
···
20
下一页