摘要:本质是层次结构的表(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就是简单的表。 ...
阅读全文
摘要: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...
阅读全文
摘要:http://blog.csdn.net/wwsheng/article/details/2064755
阅读全文
摘要:http://www.freetype.org/freetype2/documentation.html
阅读全文
摘要:点阵字体与矢量字体点阵字体也叫位图字体,其中每个字形都以一组二维像素 信息表示。由于位图的原故,点阵字体很难进行缩放,特定的点阵字体只能清晰地显示在相应的字号下。但对于 12-16px 这样小的汉字,点阵字体常常比其它类型的字体在屏幕上更好的显示效果。常见的点阵字体有 bdf,pcf,fnt,hbf 等格式。 对于常见的计算机操作系统,字体的显示算法需要一些字体的信息来优化屏幕显示效果,英文称为...
阅读全文
摘要: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 ...
阅读全文
摘要:http://homepages.inf.ed.ac.uk/rbf/HIPR2/hipr_top.htm
阅读全文
摘要:曼哈顿距离 出租车距离Taxicab geometry或曼哈顿距离 city block distance, Manhattan distance, or Manhattan length 曼哈顿距离——两点在南北方向上的距离加上在东西方向上的距离,即d(i,j)=|xi-xj|+|yi-yj|。对于一个具有正南正北、正东正西方向规则布局的城镇街道,从一点到达另一点的距离正是在南北方向上...
阅读全文
摘要: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...
阅读全文
摘要:Scene Management -- scene graph http://blog.csdn.net/soilwork/article/details/3977539 仅供个人学习使用,请勿转载,勿用于任何商业用途。 下面是一个简化的游戏引擎数据流,每一帧,scene data作为数据源,输入到物理/碰撞检测和AI子系统,子系统更新所有物体的状态(包括位置,光照信息等等),之后数据流...
阅读全文
摘要: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...
阅读全文
摘要: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 ...
阅读全文
摘要:链接: http://elinux.org/Toolchains http://buildroot.uclibc.org/buildroot.html http://crosstool-ng.org/ -----------------------------------------------------------------------------------------------...
阅读全文
摘要:1、root是管理员,是最高权限的象征,系统一般从安全角度默认禁用,通过su或sudo获取root权限; 2、rootfs是根文件系统,linux系统的根目录的挂载点是/,roofs是根目录下的所有的文件集合,是一个可以运行的系统的组织。 3、chroot是把目标地址作为根目录来使用,这个目录下边是一个可以运行的系统组织,当然PATH中必须要有shell才行。 4、sysroot是交叉编译时...
阅读全文
摘要:从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...
阅读全文
摘要:linguist 打开 qt-everywhere-opensource-src-4.7.0/translations/qt_zh_CN.ts ,查找相关
阅读全文
摘要:/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...
阅读全文
摘要:myCalendarWidget->setLocale(QLocale::Chinese); http://www.qtcentre.org/threads/24183-QCalendarWidget-and-dynamic-language-switching
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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....
阅读全文
摘要: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/...
阅读全文
摘要:1.避免硬编码 2.将功能函数放在外部文件 3.在vm中运行,更安全
阅读全文
摘要:http://www.cnbeta.com/articles/74840.htm 以前我总是以为脑袋够用,从来不用备忘、日程等工具。但事实上我太高估自己的能力,一个日程表、一个事项提醒,或者一个todo list都是十分有用的。在Lifehacker的投票里,人们认为最有用的GTD(Getting Things Done)工具是:笔和纸。除了笔和纸之外,Google日历是我认为目前最好一个日程管...
阅读全文
摘要: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...
阅读全文
摘要:1、设置窗体的背景色 在构造函数里添加代码,需要添加头文件qpalette或qgui QPalette pal = palette(); pal.setColor(QPalette::Background, QColor(0x00,0xff,0x00,0x00)); setPalette(pal); 通过设置窗体的背景色来实现,将背景色设置为全透。 效果: ...
阅读全文
摘要:http://alienblog.net/html/upgrading-vs-2008-expired-activation-method-win7.html
阅读全文
摘要: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...
阅读全文
摘要:下载: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
阅读全文
摘要:http://developer.qt.nokia.com/quarterly/view/using_cmake_to_build_qt_projects
阅读全文
摘要:http://blog.csdn.net/monkey_d_meng/article/details/6037644
阅读全文
摘要:构造函数和析构函数中的异常 2008-11-29 21:39 ...
阅读全文
摘要:http://blog.csdn.net/jixingzhong/article/details/1844531 构造函数异常,可以总结如下: 1.C++中通知对象构造失败的唯一方法那就是在构造函数中抛出异常; 2.构造函数抛出异常时,析构函数将不会被执行; 3.抛出异常时,其子对象将被逆序析构。(参考析构过程) 析构函数异常相对要复杂一些,存在一种冲突状态,程序将直接崩溃:异...
阅读全文
摘要:http://www.cplusplus.com/doc/tutorial/ #include <iostream> #include <exception> using namespace std; class MyTest_Base { public: MyTest_Base (string name = "") : m_name(name) { ...
阅读全文
摘要:############################################################################# # Makefile for building: test # Generated by qmake (2.01a) (Qt 4.6.2) on: ?? 1? 29 16:32:35 2011 # Project: tes...
阅读全文
摘要:2._REENTRANT宏 在一个多线程程序里,默认情况下,只有一个errno变量供所有的线程共享。在一个线程准备获取刚才的错误代码时,该变量很容易被另一个线程中的函数调用所改变。类似的问题还存在于fputs之类的函数中,这些函数通常用一个单独的全局性区域来缓存输出数据。 为解决这个问题,需要使用可重入的例程。可重入代码可以被多次调用而仍然工作正常。编写的多线程程序,通过定义宏_REENTRA...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:http://en.wikipedia.org/wiki/List_of_programming_languages_by_category
阅读全文
摘要: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
阅读全文
摘要:第二章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
阅读全文
摘要:http://iask.sina.com.cn/u/1698122181/ish?folderid=152364
阅读全文
摘要:形式文法和形式语言 摘自维基百科 http://en.wikipedia.org/wiki/ 【形式文法】 在计算机科学中,形式语言是:某个字母表上,一些有限长字串的集合,而形式文法是描述这个集合的一种方法。形式文法之所以这样命...
阅读全文
摘要:http://en.wikipedia.org/wiki/Automata_theory 自动机理论 自动机理论: 形式语言和形式文法 乔姆斯基层级 文法 语言 ...
阅读全文
摘要: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...
阅读全文
摘要:用了qml一段时间,发现qt自身的bug很多。看来没有nokia支持qt真的不行了。qml运行效率也比较查,毕竟是解释执行的。而且遇到一些bug很难跟踪。很多都是qml自身的bug,比如叠加时候按键响应问题,刷新问题。qml真是个垃圾。
阅读全文
摘要:默认情况下,Windows 7无法正常访问NAS或者Samba服务器上的共享文件夹。原因在于从Vista开始,微软默认只采用NTLM v2协议的认证回应消息了,而目前的NAS系统和Samba还只支持LM或者NTLM。 解决办法:修改本地安全策略或直接修改注册表 1、修改本地安全策略 运行secpol.msc打开“本地安全策略”窗体,依次点开“本地策略”-》“安全选...
阅读全文
摘要:Qt中不规则窗体和部件的实现 描述:a.png 窗口背景图 图片: 描述:mask.png 窗口掩码图 图片: 描述:toolbutton.png 按钮背景图 图片: 描述:toolbutton_mask.png 按钮掩码图 图片: 描述:runtime.png 示例运行时图 图片: Qt中不规则窗体和部件的实现,不...
阅读全文