QItemSelectionModel Class Reference
|
Константа | Значение | Описание |
---|---|---|
QItemSelectionModel::NoUpdate | 0x0000 | No selection will be made. |
QItemSelectionModel::Clear | 0x0001 | The complete selection will be cleared. |
QItemSelectionModel::Select | 0x0002 | All specified indexes will be selected. |
QItemSelectionModel::Deselect | 0x0004 | All specified indexes will be deselected. |
QItemSelectionModel::Toggle | 0x0008 | All specified indexes will be selected or deselected depending on their current state. |
QItemSelectionModel::Current | 0x0010 | The current selection will be updated. |
QItemSelectionModel::Rows | 0x0020 | All indexes will be expanded to span rows. |
QItemSelectionModel::Columns | 0x0040 | All indexes will be expanded to span columns. |
QItemSelectionModel::SelectCurrent | Select | Current | A combination of Select and Current, provided for convenience. |
QItemSelectionModel::ToggleCurrent | Toggle | Current | A combination of Toggle and Current, provided for convenience. |
QItemSelectionModel::ClearAndSelect | Clear | Select | A combination of Clear and Select, provided for convenience. |
The SelectionFlags type is a typedef for QFlags<SelectionFlag>. It stores an OR combination of SelectionFlag values.
Constructs a selection model that operates on the specified item model.
Constructs a selection model that operates on the specified item model with parent.
Destroys the selection model.
Clears the selection model. Emits selectionChanged() and currentChanged().
Clears the selection in the selection model. Emits selectionChanged().
Эта функция была введена в Qt 4.2.
Returns true if there are any items selected in the column with the given parent.
This signal is emitted whenever the current item changes. The previous model item index is replaced by the current index as the selection's current item.
Note that this signal will not be emitted when the item model is reset.
See also currentIndex(), setCurrentIndex(), and selectionChanged().
This signal is emitted if the current item changes and its column is different to the column of the previous current item.
Note that this signal will not be emitted when the item model is reset.
See also currentChanged(), currentRowChanged(), currentIndex(), and setCurrentIndex().
Returns the model item index for the current item, or an invalid index if there is no current item.
See also setCurrentIndex().
This signal is emitted if the current item changes and its row is different to the row of the previous current item.
Note that this signal will not be emitted when the item model is reset.
See also currentChanged(), currentColumnChanged(), currentIndex(), and setCurrentIndex().
Compares the two selections newSelection and oldSelection and emits selectionChanged() with the deselected and selected items.
Returns true if the selection model contains any selection ranges; otherwise returns false.
Эта функция была введена в Qt 4.2.
Returns true if all items are selected in the column with the given parent.
Note that this function is usually faster than calling isSelected() on all items in the same column and that unselectable items are ignored.
Returns true if all items are selected in the row with the given parent.
Note that this function is usually faster than calling isSelected() on all items in the same row and that unselectable items are ignored.
Returns true if the given model item index is selected.
Returns the item model operated on by the selection model.
Clears the selection model. Does not emit any signals.
Returns true if there are any items selected in the row with the given parent.
Selects the model item index using the specified command, and emits selectionChanged().
See also QItemSelectionModel::SelectionFlags.
Это перегруженная функция, предоставленная для удобства.
Selects the item selection using the specified command, and emits selectionChanged().
See also QItemSelectionModel::SelectionFlag.
Returns the indexes in the given row for columns where all rows are selected.
Эта функция была введена в Qt 4.2.
See also selectedIndexes() and selectedRows().
Returns a list of all selected model item indexes. The list contains no duplicates, and is not sorted.
Returns the indexes in the given column for the rows where all columns are selected.
Эта функция была введена в Qt 4.2.
See also selectedIndexes() and selectedColumns().
Returns the selection ranges stored in the selection model.
This signal is emitted whenever the selection changes. The change in the selection is represented as an item selection of deselected items and an item selection of selected items.
Note the that the current index changes independently from the selection. Also note that this signal will not be emitted when the item model is reset.
See also select() and currentChanged().
Sets the model item index to be the current item, and emits currentChanged(). The current item is used for keyboard navigation and focus indication; it is independent of any selected items, although a selected item can also be the current item.
Depending on the specified command, the index can also become part of the current selection.
See also currentIndex() and select().
Copyright © 2008 Nokia | Торговые марки | Qt 4.4.3 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |