自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(121)
  • 收藏
  • 关注

转载 程序的理解

程序是个概念。在操作系统的世界里,跑起来的叫进程,静态的文件。进程和文件是操作系统专有概念。

2015-07-08 10:20:22 431

转载 混音的一种思路

混音的一种思路http://atastypixel.com/blog/how-to-mix-audio-samples-properly-on-ios/

2015-07-07 11:27:44 527

原创 安装mac 10.7过程

需求 单位有台mac mini需要降级按照以前的步骤,制作安装包,删除原来的系统。开始安装,这中间出现问题问题了。查找资料发现关闭电脑。在键盘上找到以下按键:Command、Option、P 和 R。您需要在步骤 4 中同时按下这些键。启动电脑。按住 Command-Option-P-R 键。必须在出现灰屏前按下此组合键。按住上述键,直到电脑重新启动,您会再次听到启动声

2015-07-06 16:04:18 729

转载 window之 WM_COPYDATA

wchar_t winCaption[_MAX_PATH] = { 0 };        caption.toWCharArray(winCaption);        HWND receiveWindow = ::FindWindow(NULL, winCaption);        if (receiveWindow == NULL)            bre

2015-06-10 17:39:11 556

转载 window之 窗口在任务栏上不显示

HWND hWnd = (HWND)winId();    ::SetWindowLong(hWnd,GWL_EXSTYLE,GetWindowLong(hWnd,GWL_EXSTYLE)        &~WS_EX_APPWINDOW|WS_EX_TOOLWINDOW);    ::SetWindowPos(hWnd,NULL,0,0,0,0,SWP_FRAMECHANGED|SW

2015-06-10 17:36:41 1280

转载 NSWindow with rounded corners

What I was able to do is provide a custom subclass of my NSWindow:@implementation ELGRoundWindow- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreTy

2015-03-12 11:40:54 506

转载 Open Recent

Using the "Open Recent" Menu in Cocoa without NSDocumentMany people probably already know this, but if you're not using NSDocument in your Cocoa application, the "Open Recent" menu will not ge

2015-03-12 10:08:43 1155 1

转载 在VS2010中添加Flash

http://blog.csdn.net/zhuxiaoyang2000/article/details/6147483一、准备工作第一步:下载并安装Adobe Flash Player。从官方网站(http://get.adobe.com/cn/flashplayer/)上下载最新的Flash Player(大约为2.66M),并安装。对于Windows 32位系统,其默认安装目

2015-02-28 16:10:13 559

转载 删除所有的制定目录下的所有的文件

You can use the following command:find . -type f -name "FILE-TO-FIND" -exec rm -f {} \;Options:-name "FILE-TO-FIND" : File pattern.-exec rm -rf {} \; : Delete all files matched by file p

2015-02-12 10:55:03 247

转载 how do i rotate a matrix transformation with a centered origin

Let xc, yc be the coordinates of the center of the rectangle.Translate your points such that the center is the new origin:xt = x1 - xc;yt = y1 - yc;Rotate around the origin by the an

2015-02-09 10:20:49 359

转载 实战

1)今天在图片加载的时候,发现要成功加载图片需要1-2秒钟,影响到主进程的响应。所以果断就增加了一个线程负责加载过程。

2015-01-24 15:51:58 296

转载 设计模式 之 工厂模式

1) 属于创建类型。 工厂方法模式。 决定的意义:调用什么工厂,就生产什么产品。2)一般形式:两个类:产品类和工程类。抽象工厂方式:以后总结。简单工厂:把创建放在一处。有人认为它不是模式。这个模式我最早看到的是在 微软的组件,反正那个东西我没有看懂

2014-12-10 09:23:57 240

转载 qt 之 QObject

1) 类型转化You can use qobject_cast(instance) on QObject derived classes and check the return value. If instance cannot be cast to MyClass*, the return value will be NULL2)QObject 私有拷贝构造函数,和赋值操作

2014-12-09 18:19:49 293

转载 QTableView

By default the cell in QTableView starts being edited after double click. How to change this behavior. I need it to start editing after one click.void YourView::mousePressEvent(QMouseEvent

2014-11-26 10:52:29 388

转载 qt 之QTableWidget控件

QTableWidget控件总结【1】QTableWidget简介QTableWidget是QT对话框设计中常用的显示数据表格的控件。学习QTableWidget就要首先看看QTableView控件(控件也是有”家世“的!就像研究人一样一样的),因为QTableWidget继承于类QTableView。两者主要区别是QTableView可以使用自定义的数据模型来显示

2014-11-24 15:15:40 2162

转载 文件操作

1) 一个目录下的所有文件分块,

2014-11-19 13:08:29 274

转载 qt 之 macro

1) Q_UNUSED没有shi yo

2014-11-19 09:14:09 658

转载 Qt 之 QEventLoop

Qt 是事件驱动的,所以当你用Qt的时候,几乎时时刻刻和 QEventLoop 打交道、,只是你可能没有意识到:QCoreApplicaton::exec()QApplication::exec()QDialog::exec()QThread::exec()QDrag::exec()QMenu::exec()...在前面列出的这些常见函数的背后,都有各自的QEventLoop,可能

2014-11-18 18:27:06 789

转载 utf16 特殊字符

utf16 有个四字节: 0xdbff dece 经过我转换为unicode 10ffce

2014-11-17 13:08:59 886

转载 unicode

http://www.objc.io/issue-9/unicode.html

2014-11-16 19:31:33 249

转载 qt 之 QClipboard

QClipboard *clipboard = QApplication::clipboard();clipboard->setText(sourceEdit->text());

2014-11-13 14:19:13 709

转载 qt 之灵异事件

1)原来是自定义的类。后来想要使用signal-slot机制,所以需要

2014-11-12 13:58:29 306

转载 无题

1)你追我赶 :看见过一个读线程,拼命追赶

2014-11-12 11:56:51 294

转载 qt 之webengine

http://blog.qt.digia.com/blog/2013/09/12/introducing-the-qt-webengine/

2014-11-12 09:37:28 623 1

转载 Qt 之QRegExp

QString strPatt = "\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b";

2014-11-10 15:03:10 798

原创 QT 之撂倒问题

1)QT 之对话框默认的按钮,有主动

2014-11-09 18:06:03 238

转载 qt 之线程调试篇

1)启动一个线程,一直工作不zheng

2014-11-09 16:08:02 2472

转载 HTTP协议详解

引言                                        HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系统。它于1990年提出,经过几年的使用与发展,得到不断地完善和扩展。目前在WWW中使用的是HTTP/1.0的第六版,HTTP/1.1的规范化工作正在进行之中,而且HTTP-NG(Next Generation of

2014-11-06 17:45:49 278

转载 qt 之 How to Change the Background Color of QWidget

Using the PaletteThe first example demonstrates how to change the background color using QPalette [qt-project.org]m_pMyWidget = new QWidget(this);m_pMyWidget->setGeometry(0,0,3

2014-11-03 16:04:17 625

转载 how to reveal in finder or show in explorer with qt

void FolderNavigationWidget::showInGraphicalShell(QWidget *parent, const QString &pathIn){ // Mac, Windows support folder or file.#if defined(Q_OS_WIN) const QString explorer = Environment::

2014-11-01 17:01:48 1113

转载 Qt 之 QProcess

QProcess * process=new QProcess(this);QString temp="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\"";process->startDetached(temp);You need to use escaped quotes since the path has a space

2014-11-01 16:23:22 553

转载 qt 杂项

Qt工程实现打开目录并选中指定文件的方法

2014-11-01 14:47:56 339

转载 消息泵

希望一下对消息泵的理解能个您带来帮助!消息泵也就是消息(处理)循环 (Message Loop),每个基于事件驱动编写出来的 Windows 程序都应该有一个。 消息循环(Message Loop)是程序的心脏,保证程序的正常运行,它的形状大概如下面的结构。while (true){// 内部处理}可见,它应该是不断循环的一段代码, 打破它的循环可以有条件的使用

2014-10-31 12:41:34 2106

转载 c++ 遇到的问题

1) 在工程中返回一个类的复杂的结构。ge

2014-10-30 16:41:29 327

转载 Qt 之 The Property System

标记一下,以后再研究http://qt-project.org/doc/qt-5/qobject.html#no-copy-constructor-or-assignment-operator

2014-10-27 18:14:22 403

转载 Qt 之 QObject

1) QObject 子类没有gouQObject has neither a copy constructor nor an assignment operator. This is by design. Actually, they are declared, but in a private section with the macro Q_DISABLE_COPY(). In

2014-10-27 14:55:10 349

转载 Qt 之 QRegExp

QString exp("[0-9a-zA-Z_]{6,12}");    QRegExp regExp(exp);    bool isExp =  regExp.exactMatch("123456");    qDebug()<<(isExp?"true":"false");

2014-10-26 17:38:33 337

转载 qt platform compile

#ifdef Q_OS_OSX QMessageBox::information(NULL,"mac os","mac os");#endif#ifdef Q_OS_WIN QMessageBox::information(NULL,"win","win");#endif

2014-10-24 18:02:34 389

原创 qt 之 QDesktopWidget

You can use the QDesktopWidget QRect rec = QApplication::desktop()->screenGeometry(); height = rec.height(); width = rec.width();

2014-10-23 10:19:32 1736

转载 qt 之 QScreen

QScreen这个类d *screen = QGuiApplication::primaryScreen();

2014-10-22 17:39:41 6047

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除