日志
-
2011-11-20 21:25
-
Using models and views
阅读全文»分类:默认分类|回复:0|浏览:1501
模型与视图的使用
The following sections explain how to use the model/view pattern in Qt. Each section includes an an example and is followed by a section showing how to create new components.
以下章节介绍在Qt中如何使用模型/视图模式。每一节都包含一个例子,紧接其后的一节是讲解如何创建新的组件。
Two models included in Qt
Qt中的两个模型
Two of the standard models provided by Qt are QStandardItemModel and QFileSystemModel. QStandardItemModel is a multi-purpose model that ..
-
2011-11-19 19:16
-
Introduction to Model/View Programming
阅读全文»分类:默认分类|回复:0|浏览:2772
模型与视图简单介绍
Qt 4 introduced a new set of item view classes that use a model/view architecture to manage the relationship between data and the way it is presented to the user. The separation of functionality introduced by this architecture gives developers greater flexibility to customize the presentation of items, and provides a standard model interface to allow a wide range of data sources to be used with existing item views. In this document, we g ..
-
2011-11-13 14:39
-
Contents 内容
阅读全文»分类:默认分类|回复:0|浏览:1009
Introduction to Model/View Programming 模型/视图介绍The model/view architecture 模型/视图框架Models 模型Views 视图Delegates 委托Sorting 排序Convenience classes 简便类
Using models and views 使用模型/视图Two models included in Qt Qt中的两个模型 Using views with an existing model 现有模型与视图的使用
Model classes 模型类Basic concepts 基本概念Model indexes 模型索引Rows and columns 行和列Parents of items 父项Item roles 项角色Summary 总结Using model indexes 使用模型索引Further r ..
-
2011-11-11 22:58
-
看帖子的时候好像是懂了,但真正要用到得时候却有不知道从何下手,然后又要花时间去满世界找。
阅读全文»分类:默认分类|回复:0|浏览:2573
因此在看帖的时候就把觉得有用或可能要用到的东西收集起来,方便查找。
1. Re: QcomboBox hide the drop down arrow
yourCombo->setStyleSheet ("QComboBox::drop-down {border-width: 0px;} QComboBox::down-arrow {image: url(noimg); border-width: 0px;}");
2. open file
QDesktopServices::oepnUrl(QUrl::fromLocalFile(QFileInfo(yourname).absoluteFilePath()));
3.open folder
QDesktopServices::o ..
-
2011-11-06 17:43
-
写程序时前面的准备工作没有做好,没有一个很好的整体规划,总是边学边做边改。
阅读全文»分类:默认分类|回复:0|浏览:885
程序运行起来了,心里总是感觉不是很牢靠。总是想着要把程序重新整理写一遍。
很想知道其他朋友是怎样规划一个程序的。