alexltr的个人主页

http://www.qtcn.org/bbs/u/107032  [收藏] [复制]

alexltr

我不是IT,只是喜欢Qt。 我不是程序员,只是与程序有缘。

  • 26

    关注

  • 60

    粉丝

  • 150

    访客

  • 等级:骑士
  • 身份:论坛版主
  • 总积分:537
  • 男,1976-01-01
  • 广州

最后登录:2024-04-20

更多资料

日志

2011-11-20 21:25

Using models and views
模型与视图的使用

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 ..

阅读全文»分类:默认分类|回复:0|浏览:1501
2011-11-19 19:16

Introduction to Model/View Programming
模型与视图简单介绍

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 ..

阅读全文»分类:默认分类|回复:0|浏览:2772
2011-11-13 14:39

Contents 内容
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 ..

阅读全文»分类:默认分类|回复:0|浏览:1009
2011-11-11 23:22

阅读全文»分类:默认分类|回复:0|浏览:784
2011-11-11 22:58

看帖子的时候好像是懂了,但真正要用到得时候却有不知道从何下手,然后又要花时间去满世界找。
因此在看帖的时候就把觉得有用或可能要用到的东西收集起来,方便查找。


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 ..

阅读全文»分类:默认分类|回复:0|浏览:2573
2011-11-06 19:31

我来qtcn一年了!!!
在这里,我得到了很多朋友的帮助和启发,谢谢大家。
我喜欢这里,每天都要来这里逛一逛。

阅读全文»分类:默认分类|回复:1|浏览:1035
2011-11-06 17:43

写程序时前面的准备工作没有做好,没有一个很好的整体规划,总是边学边做边改。
程序运行起来了,心里总是感觉不是很牢靠。总是想着要把程序重新整理写一遍。
很想知道其他朋友是怎样规划一个程序的。

阅读全文»分类:默认分类|回复:0|浏览:885
2011-11-05 21:13

http://wiki.qt-project.org/Coding_Style

阅读全文»分类:默认分类|回复:0|浏览:798
12

Powered by phpwind v8.7 Certificate Copyright Time now is:04-27 21:21
©2005-2016 QTCN开发网 版权所有 Gzip disabled