Home · All Classes · Modules

QItemSelectionModel Class Reference
[QtGui module]

Inherits QObject.

Types

Methods

Qt Signals


Detailed Description


Type Documentation

QItemSelectionModel.SelectionFlag


Method Documentation

QItemSelectionModel.__init__ (self, QAbstractItemModel)

QItemSelectionModel.__init__ (self, QAbstractItemModel, QObject)

The QObject argument, if not None, causes self to be owned by Qt instead of PyQt.

QItemSelectionModel.clear (self)

This method is also a Qt slot with the C++ signature void clear().

QItemSelectionModel.clearSelection (self)

This method is also a Qt slot with the C++ signature void clearSelection().

bool QItemSelectionModel.columnIntersectsSelection (self, int, QModelIndex)

QModelIndex QItemSelectionModel.currentIndex (self)

QItemSelectionModel.emitSelectionChanged (self, QItemSelection, QItemSelection)

bool QItemSelectionModel.hasSelection (self)

bool QItemSelectionModel.isColumnSelected (self, int, QModelIndex)

bool QItemSelectionModel.isRowSelected (self, int, QModelIndex)

bool QItemSelectionModel.isSelected (self, QModelIndex)

QAbstractItemModel QItemSelectionModel.model (self)

QItemSelectionModel.reset (self)

This method is also a Qt slot with the C++ signature void reset().

bool QItemSelectionModel.rowIntersectsSelection (self, int, QModelIndex)

QItemSelectionModel.select (self, QModelIndex, SelectionFlags)

This method is also a Qt slot with the C++ signature void select(const QModelIndex&,QItemSelectionModel::SelectionFlags).

QItemSelectionModel.select (self, QItemSelection, SelectionFlags)

This method is also a Qt slot with the C++ signature void select(const QItemSelection&,QItemSelectionModel::SelectionFlags).

list-of-QModelIndex QItemSelectionModel.selectedColumns (self, int row = 0)

list-of-QModelIndex QItemSelectionModel.selectedIndexes (self)

list-of-QModelIndex QItemSelectionModel.selectedRows (self, int column = 0)

QItemSelection QItemSelectionModel.selection (self)

QItemSelectionModel.setCurrentIndex (self, QModelIndex, SelectionFlags)

This method is also a Qt slot with the C++ signature void setCurrentIndex(const QModelIndex&,QItemSelectionModel::SelectionFlags).


Qt Signal Documentation

void currentChanged (const QModelIndex&,const QModelIndex&)

This is the default overload of this signal.

void currentColumnChanged (const QModelIndex&,const QModelIndex&)

This is the default overload of this signal.

void currentRowChanged (const QModelIndex&,const QModelIndex&)

This is the default overload of this signal.

void selectionChanged (const QItemSelection&,const QItemSelection&)

This is the default overload of this signal.


PyQt 4.8 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.7.0