QtBase
v6.3.1
|
Signals | |
void | setSelectionCalled (const QRect &rect) |
Signals inherited from QListView | |
void | indexesMoved (const QModelIndexList &indexes) |
Signals inherited from QAbstractItemView | |
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 () |
void | iconSizeChanged (const QSize &size) |
Additional Inherited Members | |
Public Types inherited from QListView | |
enum | Movement { Static , Free , Snap } |
enum | Flow { LeftToRight , TopToBottom } |
enum | ResizeMode { Fixed , Adjust } |
enum | LayoutMode { SinglePass , Batched } |
enum | ViewMode { ListMode , IconMode } |
Public Types inherited from QAbstractItemView | |
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 } |
Public Slots inherited from QAbstractItemView | |
virtual void | selectAll () |
void | edit (const QModelIndex &index) |
void | clearSelection () |
void | setCurrentIndex (const QModelIndex &index) |
void | scrollToTop () |
void | scrollToBottom () |
void | update (const QModelIndex &index) |
Protected Types inherited from QAbstractItemView | |
enum | CursorAction { MoveUp , MoveDown , MoveLeft , MoveRight , MoveHome , MoveEnd , MovePageUp , MovePageDown , MoveNext , MovePrevious } |
enum | State { NoState , DraggingState , DragSelectingState , EditingState , ExpandingState , CollapsingState , AnimatingState } |
Protected Slots inherited from QAbstractItemView | |
virtual void | updateEditorData () |
virtual void | updateEditorGeometries () |
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) |
Properties inherited from QListView | |
Movement | movement |
whether the items can be moved freely, are snapped to a grid, or cannot be moved at all. More... | |
Flow | flow |
which direction the items layout should flow. More... | |
bool | isWrapping |
whether the items layout should wrap. More... | |
ResizeMode | resizeMode |
whether the items are laid out again when the view is resized. More... | |
LayoutMode | layoutMode |
determines whether the layout of items should happen immediately or be delayed. More... | |
int | spacing |
the space around the items in the layout More... | |
QSize | gridSize |
the size of the layout grid More... | |
ViewMode | viewMode |
the view mode of the QListView. More... | |
int | modelColumn |
the column in the model that is visible More... | |
bool | uniformItemSizes |
whether all items in the listview have the same size More... | |
int | batchSize |
the number of items laid out in each batch if \l layoutMode is set to \l Batched More... | |
bool | wordWrap |
the item text word-wrapping policy More... | |
bool | selectionRectVisible |
if the selection rectangle should be visible More... | |
Qt::Alignment | itemAlignment |
the alignment of each item in its cell More... | |
Properties inherited from QAbstractItemView | |
bool | autoScroll |
whether autoscrolling in drag move events is enabled More... | |
int | autoScrollMargin |
the size of the area when auto scrolling is triggered More... | |
EditTriggers | editTriggers |
which actions will initiate item editing More... | |
bool | tabKeyNavigation |
whether item navigation with tab and backtab is enabled. More... | |
bool | alternatingRowColors |
whether to draw the background using alternating colors More... | |
SelectionMode | selectionMode |
which selection mode the view operates in More... | |
SelectionBehavior | selectionBehavior |
which selection behavior the view uses More... | |
QSize | iconSize |
the size of items' icons More... | |
Qt::TextElideMode | textElideMode |
the position of the "..." in elided text. More... | |
ScrollMode | verticalScrollMode |
how the view scrolls its contents in the vertical direction More... | |
ScrollMode | horizontalScrollMode |
how the view scrolls its contents in the horizontal direction More... | |
Definition at line 2257 of file tst_qabstractitemview.cpp.
QListView::QListView |
Definition at line 144 of file qlistview.cpp.
|
explicit |
Creates a new QListView with the given parent to view a model. Use setModel() to set the model.
Definition at line 82 of file qlistview.cpp.
|
inlineoverrideprotectedvirtual |
\reimp
Reimplemented from QListView.
Definition at line 2266 of file tst_qabstractitemview.cpp.