上一页 1 2 3 4 5 6 7 ··· 23 下一页
摘要: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><!-- JS Includes --><script src="js/jquery.min.js" 阅读全文
posted @ 2011-11-17 16:04 Podevor 阅读(279) 评论(0) 推荐(0) 编辑
摘要: Custom Inherits QAbstractItemView must implement functions: public: QModelIndex indexAt(const QPoint &point) const;* void scrollTo(const QModelIndex &index,ScrollHint hint=EnsureVisible);* QRect visualRect(const QModelIndex &index)const;* protected: int horizontalOffset() const;* bool is 阅读全文
posted @ 2011-11-07 10:58 Podevor 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 签offer前的注意事项关于 签约/违约篇首先向你表示衷心的祝贺!如果看到这部分,那说明你已经顺利通过了笔试、面试,拿到了offer。希望每个同学都能顺利看到这部分,我相信一定会的,只要你对自己有信心。经过了笔试、面试的重重考验,终于拿到了offer,下一步要面临的问题就是:签约。而如果有的同学之前已经跟其它单位签约,现在又想和新单位签约,那么又涉及到一个问题:违约。本篇将对分别对这两部分内容进行介绍。(一)签约一般来讲,签约分为两种:签offer和签三方协议。其中,前者对个人及企业的约束效力远不及后者。下面分别来介绍。1、签offeroffer一般是单位提供给你的一个录用意向,以合同的形式提 阅读全文
posted @ 2011-11-03 19:46 Podevor 阅读(777) 评论(0) 推荐(0) 编辑
摘要: 通过Delegate创建QCheckBox来实现的Check列,只有在该列进入编辑模式时才能够Check/Uncheck。这显然不是我们想要的,网上翻来翻去,在一个国外论坛中看到了无需Delegate的实现方法,只需重写Model即可:class MyModel : public QSqlQueryModel { Q_OBJECTpublic: MyModel(QObject *parent = 0); Qt::ItemFlags flags(const QModelIndex &index) const; QVariant data(const QModelIndex... 阅读全文
posted @ 2011-11-01 17:02 Podevor 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 点击打开链接功能说明:控制shell程序的资源。语 法:ulimit[-aHS][-c<core文件上限>][-d<数据节区大小>][-f<文件大小>][-m<内存大小>][-n<文件数目>][-p<缓冲区大小>][-s<堆叠大小>][-t<CPU时间>][-u<程序数目>][-v<虚拟内存大小>]补充说明:ulimit为shell内建指令,可用来控制shell执行程序的资源。参 数:-a 显示目前资源限制的设定。-c<core文件上限> 设定core文件的最大值 阅读全文
posted @ 2011-10-31 23:42 Podevor 阅读(145) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/3268073/qobject-cannot-create-children-for-a-parent-that-is-in-a-different-threadThe run() member function is executed in a different thread, rather than the thread where QNetworkRequestManager object was created.This kind of different-thread problems happen all th 阅读全文
posted @ 2011-10-28 10:03 Podevor 阅读(618) 评论(0) 推荐(0) 编辑
摘要: http://hi.baidu.com/lincon_lin/blog/item/2de4d358ba97db232934f0f0.htmlGraphics View提供了一个界面,它既可以管理大数量的定制2D graphical items,又可与它们交互,有一个view widget可以把这些项绘制出来,并支持旋转与缩放。这个柜架也包含一个事件传播结构,对于在scene中的这些items,它具有双精度的交互能力。Items能处理键盘事件,鼠标的按,移动、释放、双击事件,也可以跟踪鼠标移动。Graphics View使用BSP树来提供对item的快速查找,使用这种技术,它可以实时地绘制大规模 阅读全文
posted @ 2011-10-28 09:48 Podevor 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 1.请问可以在Qthread里面 操作 ui控件吗?不可以。 文档原文: In GUI applications, the main thread is also called the GUI thread because it's the only thread that is allowed to perform GUI-related operations所以只能通过信号和槽机制进行传递2.QT4增加了一个非常有用的类QSettingsQSettings是qt4.0提供的一个读取配置文件的类,在windows平台,它提供了ini文件读些,注册表读写的功能。而且使用也非常简单。大家 阅读全文
posted @ 2011-10-21 15:44 Podevor 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 点击打开链接// In this function, we can get the height and width of the current widgetvoid Widget::resizeEvent(QResizeEvent *){// Use a bitmap as a mask. A bitmap only has two kind of colors: white(value is 0)// or black(other values). When we use it to set mask, we can see the window at the position// wh 阅读全文
posted @ 2011-10-20 10:38 Podevor 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 点击打开链接 阅读全文
posted @ 2011-10-19 11:55 Podevor 阅读(125) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 23 下一页