- 博客(121)
- 收藏
- 关注
转载 混音的一种思路
混音的一种思路http://atastypixel.com/blog/how-to-mix-audio-samples-properly-on-ios/
2015-07-07 11:27:44
567
原创 安装mac 10.7过程
需求 单位有台mac mini需要降级按照以前的步骤,制作安装包,删除原来的系统。开始安装,这中间出现问题问题了。查找资料发现关闭电脑。在键盘上找到以下按键:Command、Option、P 和 R。您需要在步骤 4 中同时按下这些键。启动电脑。按住 Command-Option-P-R 键。必须在出现灰屏前按下此组合键。按住上述键,直到电脑重新启动,您会再次听到启动声
2015-07-06 16:04:18
805
转载 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
595
转载 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
1333
转载 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
554
转载 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
1206
1
转载 在VS2010中添加Flash
http://blog.youkuaiyun.com/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
601
转载 删除所有的制定目录下的所有的文件
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
271
转载 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
385
转载 设计模式 之 工厂模式
1) 属于创建类型。 工厂方法模式。 决定的意义:调用什么工厂,就生产什么产品。2)一般形式:两个类:产品类和工程类。抽象工厂方式:以后总结。简单工厂:把创建放在一处。有人认为它不是模式。这个模式我最早看到的是在 微软的组件,反正那个东西我没有看懂
2014-12-10 09:23:57
266
转载 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
339
转载 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
431
转载 qt 之QTableWidget控件
QTableWidget控件总结【1】QTableWidget简介QTableWidget是QT对话框设计中常用的显示数据表格的控件。学习QTableWidget就要首先看看QTableView控件(控件也是有”家世“的!就像研究人一样一样的),因为QTableWidget继承于类QTableView。两者主要区别是QTableView可以使用自定义的数据模型来显示
2014-11-24 15:15:40
2420
转载 Qt 之 QEventLoop
Qt 是事件驱动的,所以当你用Qt的时候,几乎时时刻刻和 QEventLoop 打交道、,只是你可能没有意识到:QCoreApplicaton::exec()QApplication::exec()QDialog::exec()QThread::exec()QDrag::exec()QMenu::exec()...在前面列出的这些常见函数的背后,都有各自的QEventLoop,可能
2014-11-18 18:27:06
960
转载 qt 之 QClipboard
QClipboard *clipboard = QApplication::clipboard();clipboard->setText(sourceEdit->text());
2014-11-13 14:19:13
750
转载 qt 之webengine
http://blog.qt.digia.com/blog/2013/09/12/introducing-the-qt-webengine/
2014-11-12 09:37:28
690
1
转载 Qt 之QRegExp
QString strPatt = "\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b";
2014-11-10 15:03:10
886
转载 HTTP协议详解
引言 HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系统。它于1990年提出,经过几年的使用与发展,得到不断地完善和扩展。目前在WWW中使用的是HTTP/1.0的第六版,HTTP/1.1的规范化工作正在进行之中,而且HTTP-NG(Next Generation of
2014-11-06 17:45:49
303
转载 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
676
转载 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
1162
转载 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
616
转载 消息泵
希望一下对消息泵的理解能个您带来帮助!消息泵也就是消息(处理)循环 (Message Loop),每个基于事件驱动编写出来的 Windows 程序都应该有一个。 消息循环(Message Loop)是程序的心脏,保证程序的正常运行,它的形状大概如下面的结构。while (true){// 内部处理}可见,它应该是不断循环的一段代码, 打破它的循环可以有条件的使用
2014-10-31 12:41:34
2166
转载 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
438
转载 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
395
转载 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
367
转载 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
426
原创 qt 之 QDesktopWidget
You can use the QDesktopWidget QRect rec = QApplication::desktop()->screenGeometry(); height = rec.height(); width = rec.width();
2014-10-23 10:19:32
1833
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人