09 2011 档案

QAbstractItemModel 使用
摘要:本质是层次结构的表(table), If you do not make use of the hierarchy, then the model is a simple table of rows and columns. Each item has a unique index specified by a QModelIndex. 如果不关心层次,model就是简单的表。 ... 阅读全文

posted @ 2011-09-30 18:04 katago 阅读(5468) 评论(0) 推荐(0) 编辑

Model Subclassing Reference
摘要:Model subclasses need to provide implementations of many of the virtual functions defined in the QAbstractItemModel base class. The number of these functions that need to be implemented depends on the... 阅读全文

posted @ 2011-09-30 14:50 katago 阅读(542) 评论(0) 推荐(0) 编辑

The FreeType 2 Tutorial
摘要:http://blog.csdn.net/wwsheng/article/details/2064755 阅读全文

posted @ 2011-09-29 19:14 katago 阅读(141) 评论(0) 推荐(0) 编辑

freetype2文档部分翻译
摘要:http://www.freetype.org/freetype2/documentation.html 阅读全文

posted @ 2011-09-29 18:02 katago 阅读(225) 评论(0) 推荐(0) 编辑

关于字体和字体微调(Hinting )的知识
摘要:点阵字体与矢量字体点阵字体也叫位图字体,其中每个字形都以一组二维像素 信息表示。由于位图的原故,点阵字体很难进行缩放,特定的点阵字体只能清晰地显示在相应的字号下。但对于 12-16px 这样小的汉字,点阵字体常常比其它类型的字体在屏幕上更好的显示效果。常见的点阵字体有 bdf,pcf,fnt,hbf 等格式。 对于常见的计算机操作系统,字体的显示算法需要一些字体的信息来优化屏幕显示效果,英文称为... 阅读全文

posted @ 2011-09-29 15:21 katago 阅读(5483) 评论(0) 推荐(0) 编辑

Text Rendering in the QML Scene Graph
摘要:http://labs.qt.nokia.com/2011/07/15/text-rendering-in-the-qml-scene-graph/ Some time ago, Gunnarpresented to youwhat the new QML Scene Graph is all about. As mentioned in that article, one of ... 阅读全文

posted @ 2011-09-29 14:56 katago 阅读(916) 评论(0) 推荐(0) 编辑

图像处理链接
摘要:http://homepages.inf.ed.ac.uk/rbf/HIPR2/hipr_top.htm 阅读全文

posted @ 2011-09-29 11:33 katago 阅读(215) 评论(0) 推荐(0) 编辑

一些距离测算方法
摘要:曼哈顿距离 出租车距离Taxicab geometry或曼哈顿距离 city block distance, Manhattan distance, or Manhattan length 曼哈顿距离——两点在南北方向上的距离加上在东西方向上的距离,即d(i,j)=|xi-xj|+|yi-yj|。对于一个具有正南正北、正东正西方向规则布局的城镇街道,从一点到达另一点的距离正是在南北方向上... 阅读全文

posted @ 2011-09-29 11:16 katago 阅读(5007) 评论(0) 推荐(1) 编辑

lighthouse
摘要:Lighthouse is a Qt port There is a Plugin API for backends Lighthouse itself is completely windowsystem agnostic. In contrast to QWS, it does not even care if it’s running as a single proces... 阅读全文

posted @ 2011-09-28 19:40 katago 阅读(238) 评论(0) 推荐(0) 编辑

Scene Management -- scene graph
摘要:Scene Management -- scene graph http://blog.csdn.net/soilwork/article/details/3977539 仅供个人学习使用,请勿转载,勿用于任何商业用途。 下面是一个简化的游戏引擎数据流,每一帧,scene data作为数据源,输入到物理/碰撞检测和AI子系统,子系统更新所有物体的状态(包括位置,光照信息等等),之后数据流... 阅读全文

posted @ 2011-09-28 17:25 katago 阅读(382) 评论(0) 推荐(0) 编辑

Qt Scene Graph
摘要:http://qt.nokia.com/learning/online/talks/developerdays2010/tech-talks/scene-graph-a-different-approach-to-graphics-in-qt/ http://labs.qt.nokia.com/2010/05/18/a-qt-scenegraph/ **** http://zc... 阅读全文

posted @ 2011-09-28 16:47 katago 阅读(514) 评论(0) 推荐(0) 编辑

shell字符串的截取的问题
摘要:shell字符串的截取的问题: 一、Linux shell 截取字符变量的前8位,有方法如下: 1.expr substr “$a” 1 8 2.echo $a|awk ‘{print substr(,1,8)}’ 3.echo $a|cut -c1-8 4.echo $ 5.expr $a : ‘\(.\\).*’ 6.echo $a|dd ... 阅读全文

posted @ 2011-09-28 09:34 katago 阅读(178) 评论(0) 推荐(0) 编辑

制作交叉工具链
摘要:链接: http://elinux.org/Toolchains http://buildroot.uclibc.org/buildroot.html http://crosstool-ng.org/ -----------------------------------------------------------------------------------------------... 阅读全文

posted @ 2011-09-27 14:42 katago 阅读(310) 评论(0) 推荐(0) 编辑

root sysroot chroot rootfs解析
摘要:1、root是管理员,是最高权限的象征,系统一般从安全角度默认禁用,通过su或sudo获取root权限; 2、rootfs是根文件系统,linux系统的根目录的挂载点是/,roofs是根目录下的所有的文件集合,是一个可以运行的系统的组织。 3、chroot是把目标地址作为根目录来使用,这个目录下边是一个可以运行的系统组织,当然PATH中必须要有shell才行。 4、sysroot是交叉编译时... 阅读全文

posted @ 2011-09-27 12:48 katago 阅读(679) 评论(0) 推荐(0) 编辑

软件版本周期
摘要:从Pre-alpha(准预览版本)发展到Alpha(预览版本)、Beta(测试版本)、Released candidate (最终测试版本)至最后的Gold(完成版)。 汉漢▼ http://zh.wikipedia.org/wiki/%E8%BB%9F%E4%BB%B6%E7%89%88%E6%9C%AC%E9%80%B1%E6%9C%9F http://en.wiki... 阅读全文

posted @ 2011-09-27 09:30 katago 阅读(490) 评论(0) 推荐(0) 编辑

日期被修改
摘要:linguist 打开 qt-everywhere-opensource-src-4.7.0/translations/qt_zh_CN.ts ,查找相关 阅读全文

posted @ 2011-09-26 17:30 katago 阅读(145) 评论(0) 推荐(0) 编辑

vfat linux 大小写问题
摘要:/dev/sde1 /mnt vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0 windows下fat和ntfs也有这样的问题。比如建立a.txt A.txt,第二个会提示重命名。 参考: h... 阅读全文

posted @ 2011-09-26 15:30 katago 阅读(340) 评论(0) 推荐(0) 编辑

QCalendarWidget 汉化
摘要:myCalendarWidget->setLocale(QLocale::Chinese); http://www.qtcentre.org/threads/24183-QCalendarWidget-and-dynamic-language-switching 阅读全文

posted @ 2011-09-26 11:29 katago 阅读(420) 评论(0) 推荐(0) 编辑

shell字符串的截取的问题
摘要:shell字符串的截取的问题: 一、Linux shell 截取字符变量的前8位,有方法如下: 1.expr substr “$a” 1 8 2.echo $a|awk ‘{print substr(,1,8)}’ 3.echo $a|cut -c1-8 4.echo $ 5.expr $a : ‘\(.\\).*’ 6.echo $a|dd bs=1 co... 阅读全文

posted @ 2011-09-23 15:06 katago 阅读(212) 评论(0) 推荐(0) 编辑

vmware 虚拟机性能优化
摘要:http://blog.csdn.net/haungrui/article/details/705020 http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1620 http://www.netsec.pro/twiki/bin/view/Main/Disk... 阅读全文

posted @ 2011-09-22 19:02 katago 阅读(290) 评论(0) 推荐(0) 编辑

sata硬盘id
摘要:udev extras scsi_id 得不到信息? Some links that may helps: http://tldp.org/HOWTO/SCSI-2.4-HOWTO/index.html http://www.tldp.org/HOWTO/SCSI-Generic-HOWTO/ 探索 Linux 通用 SCSI 驱动器 http://www.... 阅读全文

posted @ 2011-09-21 15:53 katago 阅读(215) 评论(0) 推荐(0) 编辑

udevadm使用
摘要:http://linux.die.net/man/8/udevadm /lib/udev # udevadm info --query=all --path=/block/sda P: /devices/platform/host0/target0:0:3/0:0:3:0/block/sda N: sda S: block/8:0 S: disk/by-path/... 阅读全文

posted @ 2011-09-21 15:36 katago 阅读(11666) 评论(0) 推荐(0) 编辑

游戏脚本
摘要:1.避免硬编码 2.将功能函数放在外部文件 3.在vm中运行,更安全 阅读全文

posted @ 2011-09-20 18:57 katago 阅读(156) 评论(0) 推荐(0) 编辑

善用Google日历,让事情做得更高效
摘要:http://www.cnbeta.com/articles/74840.htm 以前我总是以为脑袋够用,从来不用备忘、日程等工具。但事实上我太高估自己的能力,一个日程表、一个事项提醒,或者一个todo list都是十分有用的。在Lifehacker的投票里,人们认为最有用的GTD(Getting Things Done)工具是:笔和纸。除了笔和纸之外,Google日历是我认为目前最好一个日程管... 阅读全文

posted @ 2011-09-20 14:41 katago 阅读(367) 评论(0) 推荐(0) 编辑

Linux下检测网卡与网线连接状态
摘要:http://blog.chinaunix.net/space.php?uid=20357359&do=blog&cuid=1798479 Linux下检测网卡与网线连接状态,使用ioctl向socket发送SIOCETHTOOL命令字。 link_stat.c #include <stdio.h> #include <stdlib.h> #include <stri... 阅读全文

posted @ 2011-09-20 11:25 katago 阅读(5965) 评论(0) 推荐(0) 编辑

qwidget 透明窗体
摘要:1、设置窗体的背景色 在构造函数里添加代码,需要添加头文件qpalette或qgui QPalette pal = palette(); pal.setColor(QPalette::Background, QColor(0x00,0xff,0x00,0x00)); setPalette(pal); 通过设置窗体的背景色来实现,将背景色设置为全透。 效果: ... 阅读全文

posted @ 2011-09-19 16:03 katago 阅读(8647) 评论(0) 推荐(1) 编辑

VS 2008 过期后升级激活方法 win7
摘要:http://alienblog.net/html/upgrading-vs-2008-expired-activation-method-win7.html 阅读全文

posted @ 2011-09-17 17:11 katago 阅读(224) 评论(0) 推荐(0) 编辑

Ubuntu+OpenGL程序设计
摘要:http://www.linuxidc.com/Linux/2010-05/26411.htm OpenGL编程指南(原书第7版)(OpenGL红宝书) http://product.china-pub.com/196413 opengl超级宝典 OpenGL Superbible 4ed 俗称蓝宝书 http://product.china-pub.com/5... 阅读全文

posted @ 2011-09-16 17:47 katago 阅读(402) 评论(1) 推荐(0) 编辑

openssl 交叉编译
摘要:下载:openssl-0.9.8k ./Configure linux-generic32 --prefix=/opt/qt-everywhere/marvell/APP/middlewares/openssl 修改 Makefile CC=arm-none-linux-gnueabi-gcc make make install 阅读全文

posted @ 2011-09-16 10:36 katago 阅读(754) 评论(0) 推荐(0) 编辑

cmake vs qmake
摘要:cmake vs qmake qma... 阅读全文

posted @ 2011-09-15 18:28 katago 阅读(2344) 评论(0) 推荐(0) 编辑

Using CMake to Build Qt Projects
摘要:http://developer.qt.nokia.com/quarterly/view/using_cmake_to_build_qt_projects 阅读全文

posted @ 2011-09-15 17:07 katago 阅读(166) 评论(0) 推荐(0) 编辑

RAII惯用法:C++资源管理的利器
摘要:http://blog.csdn.net/monkey_d_meng/article/details/6037644 阅读全文

posted @ 2011-09-15 17:04 katago 阅读(161) 评论(0) 推荐(0) 编辑

构造函数和析构函数中的异常
摘要:构造函数和析构函数中的异常 2008-11-29 21:39 ... 阅读全文

posted @ 2011-09-15 15:01 katago 阅读(981) 评论(0) 推荐(0) 编辑

构造和析构异常
摘要:http://blog.csdn.net/jixingzhong/article/details/1844531 构造函数异常,可以总结如下: 1.C++中通知对象构造失败的唯一方法那就是在构造函数中抛出异常; 2.构造函数抛出异常时,析构函数将不会被执行; 3.抛出异常时,其子对象将被逆序析构。(参考析构过程) 析构函数异常相对要复杂一些,存在一种冲突状态,程序将直接崩溃:异... 阅读全文

posted @ 2011-09-15 15:00 katago 阅读(235) 评论(0) 推荐(0) 编辑

构造函数异常测试
摘要:http://www.cplusplus.com/doc/tutorial/ #include <iostream> #include <exception> using namespace std; class MyTest_Base { public: MyTest_Base (string name = "") : m_name(name) { ... 阅读全文

posted @ 2011-09-15 14:54 katago 阅读(291) 评论(0) 推荐(0) 编辑

qmake生成的Makefile分析
摘要:############################################################################# # Makefile for building: test # Generated by qmake (2.01a) (Qt 4.6.2) on: ?? 1? 29 16:32:35 2011 # Project: tes... 阅读全文

posted @ 2011-09-15 14:50 katago 阅读(4849) 评论(0) 推荐(0) 编辑

-D_REENTRANT 宏作用
摘要:2._REENTRANT宏 在一个多线程程序里,默认情况下,只有一个errno变量供所有的线程共享。在一个线程准备获取刚才的错误代码时,该变量很容易被另一个线程中的函数调用所改变。类似的问题还存在于fputs之类的函数中,这些函数通常用一个单独的全局性区域来缓存输出数据。 为解决这个问题,需要使用可重入的例程。可重入代码可以被多次调用而仍然工作正常。编写的多线程程序,通过定义宏_REENTRA... 阅读全文

posted @ 2011-09-15 11:28 katago 阅读(5976) 评论(0) 推荐(1) 编辑

openssl 连接
摘要:http://www.linuxjournal.com/article/4822?page=0,3 http://www.linuxjournal.com/article/5487 http://www.ibm.com/developerworks/cn/linux/l-openssl.html http://www.openssl.org/docs/crypto/des.htm... 阅读全文

posted @ 2011-09-14 18:58 katago 阅读(231) 评论(0) 推荐(0) 编辑

密码库 链接
摘要:openssl的网址:http://www.openssl.org cryptlib开源版的网址:http://www.cs.auckland.ac.nz/%7Epgut001/cryptlib/ cryptlib商业版网页:http://www.cryptlib.com crypto++的网址:http://www.eskimo.com/~weidai/cryptlib.htm... 阅读全文

posted @ 2011-09-14 16:53 katago 阅读(220) 评论(0) 推荐(0) 编辑

des相关
摘要:http://zh.wikipedia.org/wiki/DES http://zh.wikipedia.org/wiki/3DES 块密码的工作模式,ECB,CBC,OFB和CFB等 http://zh.wikipedia.org/wiki/%E5%9D%97%E5%AF%86%E7%A0%81%E7%9A%84%E5%B7%A5%E4%BD%9C%E6%A8%A1%E5%BC%8F... 阅读全文

posted @ 2011-09-14 16:47 katago 阅读(594) 评论(0) 推荐(0) 编辑

List of programming languages by category
摘要:http://en.wikipedia.org/wiki/List_of_programming_languages_by_category 阅读全文

posted @ 2011-09-13 14:57 katago 阅读(160) 评论(0) 推荐(0) 编辑

Multiple dispatch
摘要:http://en.wikipedia.org/wiki/Multiple_dispatchIn "conventional", i.e. single dispatch, object-oriented programming languages, when you invoke a method ("send a message" in Smalltalk, "call a member function" in C++) one of its arguments is treated specially and used to 阅读全文

posted @ 2011-09-13 14:56 katago 阅读(310) 评论(0) 推荐(0) 编辑

编译原理笔记
摘要:第二章language generated by regular expression is written as L(r).this language depends on the character set that is available. set elements arereffered as symbols. this set of legal symbols is called the alphabet and is usuallywritten as the Greek symbol ∑ sigma.2.2.1 definition of regular expressions 阅读全文

posted @ 2011-09-13 11:13 katago 阅读(355) 评论(0) 推荐(0) 编辑

书籍下载
摘要:http://iask.sina.com.cn/u/1698122181/ish?folderid=152364 阅读全文

posted @ 2011-09-10 22:00 katago 阅读(131) 评论(0) 推荐(0) 编辑

形式文法和形式语言
摘要:形式文法和形式语言 摘自维基百科 http://en.wikipedia.org/wiki/ 【形式文法】 在计算机科学中,形式语言是:某个字母表上,一些有限长字串的集合,而形式文法是描述这个集合的一种方法。形式文法之所以这样命... 阅读全文

posted @ 2011-09-09 15:15 katago 阅读(1554) 评论(0) 推荐(0) 编辑

自动机理论
摘要:http://en.wikipedia.org/wiki/Automata_theory 自动机理论 自动机理论: 形式语言和形式文法 乔姆斯基层级 文法 语言 ... 阅读全文

posted @ 2011-09-09 15:06 katago 阅读(313) 评论(0) 推荐(0) 编辑

opengl 链接
摘要:http://blog.csdn.net/lpt19832003/article/category/551654 http://bbs.osgchina.org/viewthread.php?tid=4540&extra=page%3D1 http://staff.ustc.edu.cn/~zhuang/acg/index.htm http://www.lighthouse3d.com... 阅读全文

posted @ 2011-09-08 18:49 katago 阅读(227) 评论(0) 推荐(0) 编辑

qml 嵌入式 效率 qt quick
摘要:用了qml一段时间,发现qt自身的bug很多。看来没有nokia支持qt真的不行了。qml运行效率也比较查,毕竟是解释执行的。而且遇到一些bug很难跟踪。很多都是qml自身的bug,比如叠加时候按键响应问题,刷新问题。qml真是个垃圾。 阅读全文

posted @ 2011-09-08 16:24 katago 阅读(2878) 评论(1) 推荐(0) 编辑

Windows 7无法访问NAS或Samba服务器之解决
摘要:默认情况下,Windows 7无法正常访问NAS或者Samba服务器上的共享文件夹。原因在于从Vista开始,微软默认只采用NTLM v2协议的认证回应消息了,而目前的NAS系统和Samba还只支持LM或者NTLM。 解决办法:修改本地安全策略或直接修改注册表 1、修改本地安全策略 运行secpol.msc打开“本地安全策略”窗体,依次点开“本地策略”-》“安全选... 阅读全文

posted @ 2011-09-07 16:48 katago 阅读(716) 评论(0) 推荐(0) 编辑

Qt中不规则窗体和部件的实现
摘要:Qt中不规则窗体和部件的实现 描述:a.png 窗口背景图 图片: 描述:mask.png 窗口掩码图 图片: 描述:toolbutton.png 按钮背景图 图片: 描述:toolbutton_mask.png 按钮掩码图 图片: 描述:runtime.png 示例运行时图 图片: Qt中不规则窗体和部件的实现,不... 阅读全文

posted @ 2011-09-01 18:23 katago 阅读(905) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

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