摘要: 如果你想在当前目录下 查找"hello,world!"字符串,可以这样: grep -rn "hello,world!" * 阅读全文
posted @ 2016-02-12 22:15 会飞的鱼鱼鱼 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 判断目录是否存在: QString proFile(t_path); proFile.append("/dir"); QFileInfo proFileInfo(proFile); if(proFileInfo.exists()) { // } 新建目录 QString t_tmpDir(theDi 阅读全文
posted @ 2016-02-12 22:14 会飞的鱼鱼鱼 阅读(810) 评论(0) 推荐(0) 编辑
摘要: CPaintDC dc(this); if (!m_hBitmap) return; image.Attach(m_hBitmap); CRect rect; GetClientRect(&rect);//获得控件所在的矩形区域 int width = rect.Width(); int heigh 阅读全文
posted @ 2016-02-12 22:13 会飞的鱼鱼鱼 阅读(220) 评论(0) 推荐(0) 编辑