Definition at line 63 of file qabstractitemview.h.
Public Types
|
| enum |
SelectionMode {
NoSelection,
SingleSelection,
MultiSelection,
ExtendedSelection,
ContiguousSelection
} |
| enum |
SelectionBehavior {
SelectItems,
SelectRows,
SelectColumns } |
| enum |
ScrollHint {
EnsureVisible,
PositionAtTop,
PositionAtBottom,
PositionAtCenter } |
| enum |
EditTrigger {
NoEditTriggers
= 0,
CurrentChanged = 1,
DoubleClicked = 2,
SelectedClicked = 4,
EditKeyPressed
= 8,
AnyKeyPressed = 16,
AllEditTriggers = 31
} |
| enum |
ScrollMode {
ScrollPerItem,
ScrollPerPixel } |
| enum |
DragDropMode {
NoDragDrop,
DragOnly,
DropOnly,
DragDrop,
InternalMove
} |
Public Slots
|
| virtual
void |
reset () |
| virtual
void |
setRootIndex (const QModelIndex &index) |
| virtual
void |
doItemsLayout () |
| virtual
void |
selectAll () |
| void |
edit (const QModelIndex &index) |
| void |
clearSelection () |
| void |
setCurrentIndex (const QModelIndex &index) |
| void |
scrollToTop () |
| void |
scrollToBottom () |
| void |
update (const QModelIndex &index) |
Signals
|
| void |
pressed (const QModelIndex &index) |
| void |
clicked (const QModelIndex &index) |
| void |
doubleClicked (const QModelIndex &index) |
| void |
activated (const QModelIndex &index) |
| void |
entered (const QModelIndex &index) |
| void |
viewportEntered () |
Public Member Functions
|
| |
QAbstractItemView (QWidget *parent=0) |
| |
~QAbstractItemView () |
| virtual
void |
setModel (QAbstractItemModel
*model) |
| QAbstractItemModel
* |
model () const |
| virtual
void |
setSelectionModel (QItemSelectionModel
*selectionModel) |
| QItemSelectionModel
* |
selectionModel () const |
| void |
setItemDelegate (QAbstractItemDelegate
*delegate) |
| QAbstractItemDelegate
* |
itemDelegate () const |
| void |
setSelectionMode (QAbstractItemView::SelectionMode
mode) |
|
QAbstractItemView::SelectionMode |
selectionMode () const |
| void |
setSelectionBehavior (QAbstractItemView::SelectionBehavior
behavior) |
|
QAbstractItemView::SelectionBehavior |
selectionBehavior () const |
| QModelIndex |
currentIndex () const |
| QModelIndex |
rootIndex () const |
| void |
setEditTriggers (EditTriggers triggers) |
|
EditTriggers |
editTriggers () const |
| void |
setVerticalScrollMode (ScrollMode
mode) |
|
ScrollMode |
verticalScrollMode () const |
| void |
setHorizontalScrollMode (ScrollMode
mode) |
|
ScrollMode |
horizontalScrollMode () const |
| void |
setAutoScroll (bool enable) |
| bool |
hasAutoScroll () const |
| void |
setAutoScrollMargin (int margin) |
| int |
autoScrollMargin () const |
| void |
setTabKeyNavigation (bool enable) |
| bool |
tabKeyNavigation () const |
| void |
setDropIndicatorShown (bool enable) |
| bool |
showDropIndicator () const |
| void |
setDragEnabled (bool enable) |
| bool |
dragEnabled () const |
| void |
setDragDropOverwriteMode (bool overwrite) |
| bool |
dragDropOverwriteMode () const |
| void |
setDragDropMode (DragDropMode
behavior) |
|
DragDropMode |
dragDropMode () const |
| void |
setDefaultDropAction (Qt::DropAction
dropAction) |
| Qt::DropAction |
defaultDropAction () const |
| void |
setAlternatingRowColors (bool enable) |
| bool |
alternatingRowColors () const |
| void |
setIconSize (const QSize &size) |
| QSize |
iconSize () const |
| void |
setTextElideMode (Qt::TextElideMode
mode) |
| Qt::TextElideMode |
textElideMode () const |
| virtual
void |
keyboardSearch (const QString &search) |
| virtual
QRect |
visualRect (const QModelIndex &index) const
=0 |
| virtual
void |
scrollTo (const QModelIndex &index,
ScrollHint hint=EnsureVisible)=0 |
| virtual
QModelIndex |
indexAt (const QPoint &point) const =0 |
| QSize |
sizeHintForIndex (const QModelIndex &index) const |
| virtual
int |
sizeHintForRow (int row) const |
| virtual
int |
sizeHintForColumn (int column) const |
| void |
openPersistentEditor (const QModelIndex &index) |
| void |
closePersistentEditor (const QModelIndex &index) |
| void |
setIndexWidget (const QModelIndex &index, QWidget *widget) |
| QWidget * |
indexWidget (const QModelIndex &index) const |
| void |
setItemDelegateForRow (int row, QAbstractItemDelegate
*delegate) |
| QAbstractItemDelegate
* |
itemDelegateForRow (int row) const |
| void |
setItemDelegateForColumn (int column, QAbstractItemDelegate
*delegate) |
| QAbstractItemDelegate
* |
itemDelegateForColumn (int column) const |
| QAbstractItemDelegate
* |
itemDelegate (const QModelIndex &index) const |
| virtual
QVariant |
inputMethodQuery (Qt::InputMethodQuery
query) const |
Protected Types
|
| enum |
CursorAction {
MoveUp,
MoveDown,
MoveLeft,
MoveRight,
MoveHome,
MoveEnd,
MovePageUp,
MovePageDown,
MoveNext,
MovePrevious
} |
| enum |
State {
NoState,
DraggingState,
DragSelectingState,
EditingState,
ExpandingState,
CollapsingState,
AnimatingState
} |
| enum |
DropIndicatorPosition {
OnItem,
AboveItem,
BelowItem,
OnViewport } |
Protected Slots
|
| virtual
void |
dataChanged (const QModelIndex &topLeft, const
QModelIndex
&bottomRight) |
| virtual
void |
rowsInserted (const QModelIndex &parent, int start,
int end) |
| virtual
void |
rowsAboutToBeRemoved (const QModelIndex &parent, int start,
int end) |
| virtual
void |
selectionChanged (const QItemSelection &selected,
const QItemSelection
&deselected) |
| virtual
void |
currentChanged (const QModelIndex ¤t, const
QModelIndex
&previous) |
| virtual
void |
updateEditorData () |
| virtual
void |
updateEditorGeometries () |
| virtual
void |
updateGeometries () |
| virtual
void |
verticalScrollbarAction (int action) |
| virtual
void |
horizontalScrollbarAction (int action) |
| virtual
void |
verticalScrollbarValueChanged (int value) |
| virtual
void |
horizontalScrollbarValueChanged (int value) |
| virtual
void |
closeEditor (QWidget *editor,
QAbstractItemDelegate::EndEditHint hint) |
| virtual
void |
commitData (QWidget *editor) |
| virtual
void |
editorDestroyed (QObject *editor) |
Protected Member Functions
|
| |
QAbstractItemView (QAbstractItemViewPrivate &, QWidget *parent=0) |
| void |
setHorizontalStepsPerItem (int steps) |
| int |
horizontalStepsPerItem () const |
| void |
setVerticalStepsPerItem (int steps) |
| int |
verticalStepsPerItem () const |
| virtual
QModelIndex |
moveCursor (CursorAction
cursorAction, Qt::KeyboardModifiers modifiers)=0 |
| virtual
int |
horizontalOffset () const =0 |
| virtual
int |
verticalOffset () const =0 |
| virtual
bool |
isIndexHidden (const QModelIndex &index) const
=0 |
| virtual
void |
setSelection (const QRect &rect,
QItemSelectionModel::SelectionFlags command)=0 |
| virtual
QRegion |
visualRegionForSelection (const QItemSelection &selection)
const =0 |
| virtual
QModelIndexList |
selectedIndexes () const |
| virtual
bool |
edit (const QModelIndex &index,
EditTrigger trigger, QEvent *event) |
virtual
QItemSelectionModel::SelectionFlags |
selectionCommand (const QModelIndex &index, const
QEvent *event=0)
const |
| virtual
void |
startDrag (Qt::DropActions supportedActions) |
| virtual
QStyleOptionViewItem |
viewOptions () const |
|
State |
state () const |
| void |
setState (State
state) |
| void |
scheduleDelayedItemsLayout () |
| void |
executeDelayedItemsLayout () |
| void |
setDirtyRegion (const QRegion ®ion) |
| void |
scrollDirtyRegion (int dx, int dy) |
| QPoint |
dirtyRegionOffset () const |
| void |
startAutoScroll () |
| void |
stopAutoScroll () |
| void |
doAutoScroll () |
| bool |
focusNextPrevChild (bool next) |
| bool |
event (QEvent
*event) |
| bool |
viewportEvent (QEvent *event) |
| void |
mousePressEvent (QMouseEvent *event) |
| void |
mouseMoveEvent (QMouseEvent *event) |
| void |
mouseReleaseEvent (QMouseEvent *event) |
| void |
mouseDoubleClickEvent (QMouseEvent *event) |
| void |
dragEnterEvent (QDragEnterEvent *event) |
| void |
dragMoveEvent (QDragMoveEvent *event) |
| void |
dragLeaveEvent (QDragLeaveEvent *event) |
| void |
dropEvent (QDropEvent *event) |
| void |
focusInEvent (QFocusEvent *event) |
| void |
focusOutEvent (QFocusEvent *event) |
| void |
keyPressEvent (QKeyEvent *event) |
| void |
resizeEvent (QResizeEvent *event) |
| void |
timerEvent (QTimerEvent *event) |
| void |
inputMethodEvent (QInputMethodEvent
*event) |
|
DropIndicatorPosition |
dropIndicatorPosition () const |
Properties
|
| bool |
autoScroll |
| int |
autoScrollMargin |
|
EditTriggers |
editTriggers |
| bool |
tabKeyNavigation |
| bool |
showDropIndicator |
| bool |
dragEnabled |
| bool |
dragDropOverwriteMode |
|
DragDropMode |
dragDropMode |
| Qt::DropAction |
defaultDropAction |
| bool |
alternatingRowColors |
|
SelectionMode |
selectionMode |
|
SelectionBehavior |
selectionBehavior |
| QSize |
iconSize |
| Qt::TextElideMode |
textElideMode |
|
ScrollMode |
verticalScrollMode |
|
ScrollMode |
horizontalScrollMode |
Friends
|
| class |
QAccessibleItemRow |
| class |
QListModeViewBase |
| class |
QListViewPrivate |