QColumnView Class ReferenceThe QColumnView class provides a model/view implementation of a column view. Далее... #include <QColumnView> Унаследован от:QAbstractItemView. Класс был добавлен в Qt 4.3. Свойства
Открытые функции
Переопределённые открытые функции
Сигналы
Защищенные функции
Переопределённые защищённые функции
Дополнительные унаследованные члены
Подробное описание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. See also Model/View Programming. Описание свойствresizeGripsVisible : boolThis property holds the way to specify if the list views gets resize grips or not. By default, visible is set to true Функции доступа:
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. Смотрите также QAbstractItemModel. QColumnView::~QColumnView ()Destroys the column view. QList<int> QColumnView::columnWidths () constReturns 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(). void QColumnView::currentChanged ( const QModelIndex & current, const QModelIndex & previous ) [virtual protected]Переопределено из QAbstractItemView::currentChanged(). int QColumnView::horizontalOffset () const [virtual protected]Переопределено из QAbstractItemView::horizontalOffset(). QModelIndex QColumnView::indexAt ( const QPoint & point ) const [virtual]Переопределено из QAbstractItemView::indexAt(). void QColumnView::initializeColumn ( QAbstractItemView * column ) const [protected]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(). bool QColumnView::isIndexHidden ( const QModelIndex & index ) const [virtual protected]Переопределено из QAbstractItemView::isIndexHidden(). QModelIndex QColumnView::moveCursor ( CursorAction cursorAction, Qt::KeyboardModifiers modifiers ) [virtual protected]Переопределено из 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 QWidget * QColumnView::previewWidget () constReturns the preview widget, or 0 if there is none. See also setPreviewWidget() and updatePreviewWidget(). void QColumnView::resizeEvent ( QResizeEvent * event ) [virtual protected]Переопределено от QWidget::resizeEvent(). void QColumnView::rowsInserted ( const QModelIndex & parent, int start, int end ) [virtual protected]Переопределено из QAbstractItemView::rowsInserted(). void QColumnView::scrollContentsBy ( int dx, int dy ) [virtual protected]Переопределено из QAbstractScrollArea::scrollContentsBy(). void QColumnView::scrollTo ( const QModelIndex & index, ScrollHint hint = EnsureVisible ) [virtual]Переопределено из QAbstractItemView::scrollTo(). void QColumnView::selectAll () [virtual]Reimplemented from QAbstractItemView::selectAll(). 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::setModel ( QAbstractItemModel * model ) [virtual]Reimplemented from QAbstractItemView::setModel(). 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::setRootIndex ( const QModelIndex & index ) [virtual]Reimplemented from QAbstractItemView::setRootIndex(). void QColumnView::setSelection ( const QRect & rect, QItemSelectionModel::SelectionFlags command ) [virtual protected]Переопределено из QAbstractItemView::setSelection(). void QColumnView::setSelectionModel ( QItemSelectionModel * newSelectionModel ) [virtual]Переопределено от QAbstractItemView::setSelectionModel(). QSize QColumnView::sizeHint () const [virtual]Переопределено от QWidget::sizeHint(). 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(). int QColumnView::verticalOffset () const [virtual protected]Переопределено из QAbstractItemView::verticalOffset(). QRect QColumnView::visualRect ( const QModelIndex & index ) const [virtual]Переопределено из QAbstractItemView::visualRect(). QRegion QColumnView::visualRegionForSelection ( const QItemSelection & selection ) const [virtual protected]Переопределено из QAbstractItemView::visualRegionForSelection(). |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |