08 2010 档案

摘要:1. I see. 我明白了。2. I quit! 我不干了!3. Let go! 放手!4. Me too. 我也是。5. My god! 天哪!6. No way! 不行!7. Come on. 来吧(赶快)8. Hold on. 等一等。9. I agree。 我同意。10. Not bad. 还不错。11. Not yet. 还没。12. See you. 再见。13. Shut up! ... 阅读全文
posted @ 2010-08-30 23:14 MokLiu 编辑
摘要:用QT编写的程序,怎样在申请资源失败后,关闭所有窗口,退出程序? 我写的一个QT窗口,以一个对话框为主窗口,在对话框的初始化函数(对话框类的构造函数)中回申请一些资源,现在我想在申请失败后关闭所以窗口,结束程序。 主程序如下: QApplication a; MyDlg myDlg( this, “MainWindows” ); a.setMainWidget( &myDlg ); myDlg.... 阅读全文
posted @ 2010-08-24 21:03 MokLiu 编辑
摘要:// dfgasd.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include //#include #include #pragma comment(lib,"ws2_32.lib")#define PORT 5150 #define ... 阅读全文
posted @ 2010-08-17 13:51 MokLiu 编辑
摘要:Nagle算法是以他的发明人John Nagle的名字命名的,它用于自动连接许多的小缓冲器消息;这一过程(称为nagling)通过减少必须发送包的个数来增加网络软件系统的效率。Nagle算法于1984年定义为福特航空和通信公司IP/TCP拥塞控制方法,这是福特经营的最早的专用TCP/IP网络减少拥塞控制,从那以后这一方法得到了广泛应用。Nagle的文档里定义了处理他所谓的小包问题的方法,这种问题指... 阅读全文
posted @ 2010-08-17 06:39 MokLiu 编辑
摘要:qt对QMenu的封装 没有SystemMenu QTextCodec::setCodecForTr(QTextCodec::codecForName("GB2312")); HMENU systemMenu = GetSystemMenu(this->winId(),false); QString aa = tr("自定义系统菜单"); AppendMen... 阅读全文
posted @ 2010-08-15 19:33 MokLiu 编辑
摘要:What's New in Qt 4.7Qt 4.7 provides many improvements and enhancements over the previous releases in the Qt 4 series. This document covers the most important features in this release, separated by cat... 阅读全文
posted @ 2010-08-06 08:29 MokLiu 编辑
摘要:qstring is unicode. utf16 in qt4.QString fromAscii ( const char * str, int size = -1 )QString fromLatin1 ( const char * str, int size = -1 )QString fromLocal8Bit ( const char * str, int size = -1 )QSt... 阅读全文
posted @ 2010-08-05 21:31 MokLiu 编辑

点击右上角即可分享
微信分享提示