Spec-Zone.ru › Qt 5.6

Тип QML ItemSelectionModel

Создаёт QItemSelectionModel для использования совместно с QAbstractItemModel и любым представлением, его поддерживающим. Подробнее...

Оператор импорта: import QtQml.Models 2.2
С: Qt 5.5
Создаёт: QItemSelectionModel
  • Список всех членов, включая унаследованные

Свойства

  • currentIndex : QModelIndex
  • hasSelection : bool
  • model : QAbstractItemModel
  • selectedIndexes : QModelIndexList

Сигналы

  • currentChanged(QModelIndex current, QModelIndex previous)
  • selectionChanged(QItemSelection selected, QItemSelection deselected)

Методы

  • void clear()
  • void clearCurrentIndex()
  • void clearSelection()
  • bool columnIntersectsSelection(int column, QModelIndex parent)
  • bool isColumnSelected(int column, QModelIndex parent)
  • bool isRowSelected(int row, QModelIndex parent)
  • bool isSelected(QModelIndex index)
  • void reset()
  • bool rowIntersectsSelection(int row, QModelIndex parent)
  • void select(QItemSelection selection, SelectionFlags command)
  • void select(QModelIndex index, SelectionFlags command)
  • QModelIndexList selectedColumns(int row)
  • QModelIndexList selectedRows(int column)
  • QItemSelection selection()
  • void setCurrentIndex(QModelIndex index, SelectionFlags command)

Подробное описание

Эта страница перечисляет только свойства, методы и сигналы, доступные в QML. Для получения фактической документации этого класса см. QItemSelectionModel.

См. также QItemSelectionModel и Модели и представления в Qt Quick.

Документация по свойствам

[только для чтения] currentIndex : QModelIndex

Для установки значения используйте setCurrentIndex().

См. также setCurrentIndex() и currentChanged().

[только для чтения] hasSelection : bool

Будет вызывать обновления свойств привязки каждый раз, когда испускается selectionChanged(), даже если значение не изменилось.

См. также selection(), selectedIndexes, select() и selectionChanged().

model : QAbstractItemModel

Значение этого свойства должно совпадать с моделью представления.

[только для чтения] selectedIndexes : QModelIndexList

Содержит список всех индексов в модели выделения.

Документация по сигналам

currentChanged(QModelIndex current, QModelIndex previous)

selectionChanged(QItemSelection selected, QItemSelection deselected)

Документация по методам

void clear()

void clearCurrentIndex()

void clearSelection()

bool columnIntersectsSelection(int column, QModelIndex parent)

bool isColumnSelected(int column, QModelIndex parent)

bool isRowSelected(int row, QModelIndex parent)

bool isSelected(QModelIndex index)

void reset()

bool rowIntersectsSelection(int row, QModelIndex parent)

void select(QItemSelection selection, SelectionFlags command)

void select(QModelIndex index, SelectionFlags command)

QModelIndexList selectedColumns(int row)

QModelIndexList selectedRows(int column)

QItemSelection selection()

void setCurrentIndex(QModelIndex index, SelectionFlags command)

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/archives/qt-5.6/qml-qtqml-models-itemselectionmodel.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API