Qt:Документация 4.3.2/itemviews-chart

Материал из Wiki.crossplatform.ru

Версия от 12:14, 20 ноября 2008; 217.174.98.237 (Обсуждение)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

[править] Chart Example

Files:


The Chart example shows how to create a custom view for the model/view framework.

center In this example, the items in a table model are represented as slices in a pie chart, relying on the flexibility of the model/view architecture to handle custom editing and selection features.

Note that you only need to create a new view class if your data requires a specialized representation. You should first consider using a standard QListView, QTableView, or QTreeView with a custom QItemDelegate subclass if you need to represent data in a special way.


Copyright © 2007 Trolltech Trademarks
Qt 4.3.2