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

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

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

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

Image:trolltech-logo.png

Содержание

[править] QColumnView Class Reference
[модуль QtGui ]

The QColumnView class provides a model/view implementation of a column view. More...

 #include <QColumnView>

Inherits QAbstractItemView.

This class was introduced in Qt 4.3.

[править] Свойства

  • 14 свойства унаследованных от QAbstractItemView
  • 2 свойства унаследованных от QAbstractScrollArea
  • 6 свойства унаследованных от QFrame
  • 56 свойства унаследованных от QWidget
  • 1 свойство унаследованное от QObject

[править] Открытые функции

  • 52 открытых функций унаследованных от QAbstractItemView
  • 15 открытых функций унаследованных от QAbstractScrollArea
  • 13 открытых функций унаследованных от QFrame
  • 201 открытых функций унаследованных от QWidget
  • 29 открытых функций унаследованных от QObject
  • 12 открытых функций унаследованных от QPaintDevice

[править] Сигналы

  • 6 сигнала унаследованных от QAbstractItemView
  • 1 сигнал унаследованный от QWidget
  • 1 сигнал унаследованный от QObject

[править] Защищенные функции

  • virtual QAbstractItemView * createColumn ( const QModelIndex & index )
  • 33 защищенных функций унаследованных от QAbstractItemView
  • 16 защищенных функций унаследованных от QAbstractScrollArea
  • 38 защищенных функций унаследованных от QWidget
  • 7 защищенных функций унаследованных от QObject
  • 1 защищенная функция унаследованна от QPaintDevice

[править] Дополнительные унаследованные члены

  • 9 открытых слотов унаследованных от QAbstractItemView
  • 19 открытых слотов унаследованных от QWidget
  • 1 открытый слот унаследованный от QObject
  • 4 статических открытых члена унаследованных от QWidget
  • 5 статических открытых члена унаследованных от QObject
  • 8 защищенных слотов унаследованных от QAbstractItemView
  • 1 защищенный слот унаследованный от QAbstractScrollArea
  • 1 защищенный слот унаследованный от QWidget

[править] Подробное описание

The QColumnView class provides a model/view implementation of a column view.

QColumnView displays a model in a number of QListViews, one for each hierarchy in the tree. This is sometimes referred to as a cascading list.

The QColumnView class is one of the Model/View Classes and is part of Qt's model/view framework.

QColumnView implements the interfaces defined by the QAbstractItemView class to allow it to display data provided by models derived from the QAbstractItemModel class.

Файл:Qcolumnview.png

See also Model/View Programming.


[править] Описание свойств

[править]
resizeGripsVisible : bool

This property holds the way to specify if the list views gets resize grips or not.

By default, visible is set to true

Функции доступа:

  • bool resizeGripsVisible () const
  • void setResizeGripsVisible ( bool visible )

See also setRootIndex().


[править] Описание функций-членов

[править]
QColumnView::QColumnView ( QWidget * parent = 0 )

Constructs a column view with a parent to represent a model's data. Use setModel() to set the model.

See also QAbstractItemModel.

[править]
QColumnView::~QColumnView ()

Destroys the column view.

[править]
QList<int> QColumnView::columnWidths () const

Returns a list of the width of all the columns in this view.

See also setColumnWidths().

[править]
QAbstractItemView * QColumnView::createColumn ( const QModelIndex & index ) [virtual protected]

To use a custom widget for the final column when you select an item overload this function and return a widget. index is the root index that will be assigned to the view.

Return the new view. QColumnView will automatically take ownership of the widget.

See also setPreviewWidget().

[править]
QWidget * QColumnView::previewWidget () const

Returns the preview widget, or 0 if there is none.

See also setPreviewWidget() and updatePreviewWidget().

[править]
void QColumnView::setColumnWidths ( const QList<int> & list )

Sets the column widths to the values given in the list. Extra values in the list are kept and used when the columns are created.

If list contains too few values, only width of the rest of the columns will not be modified.

See also columnWidths() and createColumn().

[править]
void QColumnView::setPreviewWidget ( QWidget * widget )

Sets the preview widget.

The widget becomes a child of the column view, and will be destroyed when the column area is deleted or when a new widget is set.

See also previewWidget() and updatePreviewWidget().

[править]
void QColumnView::updatePreviewWidget ( const QModelIndex & index ) [signal]

This signal is emitted when the preview widget should be updated to provide rich information about index

See also previewWidget().


Copyright © 2007 Trolltech Trademarks
Qt 4.3.2