QColumnView Class Reference
|
| QColumnView ( QWidget * parent = 0 ) | |
| ~QColumnView () | |
| QList<int> | columnWidths () const |
| QWidget * | previewWidget () const |
| bool | resizeGripsVisible () const |
| void | setColumnWidths ( const QList<int> & list ) |
| void | setPreviewWidget ( QWidget * widget ) |
| void | setResizeGripsVisible ( bool visible ) |
| virtual QModelIndex | indexAt ( const QPoint & point ) const |
| virtual void | scrollTo ( const QModelIndex & index, ScrollHint hint = EnsureVisible ) |
| virtual void | selectAll () |
| virtual void | setModel ( QAbstractItemModel * model ) |
| virtual void | setRootIndex ( const QModelIndex & index ) |
| virtual void | setSelectionModel ( QItemSelectionModel * newSelectionModel ) |
| virtual QSize | sizeHint () const |
| virtual QRect | visualRect ( const QModelIndex & index ) const |
| void | updatePreviewWidget ( const QModelIndex & index ) |
| virtual QAbstractItemView * | createColumn ( const QModelIndex & index ) |
| void | initializeColumn ( QAbstractItemView * column ) const |
| virtual void | currentChanged ( const QModelIndex & current, const QModelIndex & previous ) |
| virtual int | horizontalOffset () const |
| virtual bool | isIndexHidden ( const QModelIndex & index ) const |
| virtual QModelIndex | moveCursor ( CursorAction cursorAction, Qt::KeyboardModifiers modifiers ) |
| virtual void | resizeEvent ( QResizeEvent * event ) |
| virtual void | rowsInserted ( const QModelIndex & parent, int start, int end ) |
| virtual void | scrollContentsBy ( int dx, int dy ) |
| virtual void | setSelection ( const QRect & rect, QItemSelectionModel::SelectionFlags command ) |
| virtual int | verticalOffset () const |
| virtual QRegion | visualRegionForSelection ( const QItemSelection & selection ) const |
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.

Смотрите также Программирование модель/представление.
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().
Constructs a column view with a parent to represent a model's data. Use setModel() to set the model.
Смотрите также QAbstractItemModel.
Destroys the column view.
Returns a list of the width of all the columns in this view.
See also setColumnWidths().
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().
Повторно реализовано из QAbstractItemView::currentChanged().
Повторно реализовано из QAbstractItemView::horizontalOffset().
Повторно реализовано из QAbstractItemView::indexAt().
Copies the behavior and options of the column view and applies them to the column such as the iconSize(), textElideMode() and alternatingRowColors(). This can be useful when reimplementing createColumn().
Эта функция была введена в Qt 4.4.
See also createColumn().
Повторно реализовано из QAbstractItemView::isIndexHidden().
Повторно реализовано из QAbstractItemView::moveCursor().
Move left should go to the parent index Move right should go to the child index or down if there is no child
Returns the preview widget, or 0 if there is none.
See also setPreviewWidget() and updatePreviewWidget().
Повторно реализовано из QWidget::resizeEvent().
Повторно реализовано из QAbstractItemView::rowsInserted().
Повторно реализовано из QAbstractScrollArea::scrollContentsBy().
Повторно реализовано из QAbstractItemView::scrollTo().
Reimplemented from QAbstractItemView::selectAll().
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().
Reimplemented from QAbstractItemView::setModel().
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().
Reimplemented from QAbstractItemView::setRootIndex().
Повторно реализовано из QAbstractItemView::setSelection().
Reimplemented from QAbstractItemView::setSelectionModel().
Повторно реализовано из QWidget::sizeHint().
This signal is emitted when the preview widget should be updated to provide rich information about index
See also previewWidget().
Повторно реализовано из QAbstractItemView::verticalOffset().
Повторно реализовано из QAbstractItemView::visualRect().
Повторно реализовано из QAbstractItemView::visualRegionForSelection().
| Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Торговые марки | Qt 4.6.4 |
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |