7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qabstractitemview.h>
27 Q_PROPERTY(
int modelColumn READ modelColumn WRITE setModelColumn)
28 Q_PROPERTY(
bool uniformItemSizes READ uniformItemSizes WRITE setUniformItemSizes)
29 Q_PROPERTY(
int batchSize READ batchSize WRITE setBatchSize)
30 Q_PROPERTY(
bool wordWrap READ wordWrap WRITE setWordWrap)
31 Q_PROPERTY(
bool selectionRectVisible READ isSelectionRectVisible WRITE setSelectionRectVisible)
32 Q_PROPERTY(Qt::Alignment itemAlignment READ itemAlignment WRITE setItemAlignment)
37 enum
Flow { LeftToRight, TopToBottom };
49 void setMovement(Movement movement);
50 Movement movement()
const;
52 void setFlow(Flow flow);
56 bool isWrapping()
const;
58 void setResizeMode(ResizeMode
mode);
59 ResizeMode resizeMode()
const;
61 void setLayoutMode(LayoutMode
mode);
62 LayoutMode layoutMode()
const;
64 void setSpacing(
int space);
67 void setBatchSize(
int batchSize);
68 int batchSize()
const;
71 QSize gridSize()
const;
74 ViewMode viewMode()
const;
76 void clearPropertyFlags();
78 bool isRowHidden(
int row)
const;
79 void setRowHidden(
int row,
bool hide);
81 void setModelColumn(
int column);
82 int modelColumn()
const;
84 void setUniformItemSizes(
bool enable);
85 bool uniformItemSizes()
const;
87 void setWordWrap(
bool on);
88 bool wordWrap()
const;
90 void setSelectionRectVisible(
bool show);
91 bool isSelectionRectVisible()
const;
93 void setItemAlignment(Qt::Alignment
alignment);
94 Qt::Alignment itemAlignment()
const;
101 void reset()
override;
112 void scrollContentsBy(
int dx,
int dy)
override;
115 QSize contentsSize()
const;
124#if QT_CONFIG(wheelevent)
125 void wheelEvent(QWheelEvent *
e)
override;
130#if QT_CONFIG(draganddrop)
131 void dragMoveEvent(QDragMoveEvent *
e)
override;
132 void dragLeaveEvent(QDragLeaveEvent *
e)
override;
133 void dropEvent(QDropEvent *
e)
override;
134 void startDrag(Qt::DropActions supportedActions)
override;
The QAbstractItemView class provides the basic functionality for item view classes.
virtual QRect visualRect(const QModelIndex &index) const =0
Returns the rectangle on the viewport occupied by the item at index.
virtual QRegion visualRegionForSelection(const QItemSelection &selection) const =0
Returns the region from the viewport of the items in the given selection.
virtual void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command)=0
Applies the selection flags to the items in or touched by the rectangle, rect.
virtual int verticalOffset() const =0
Returns the vertical offset of the view.
void timerEvent(QTimerEvent *event) override
This function is called with the given event when a timer event is sent to the widget.
virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
This slot is called when the selection is changed.
virtual void reset()
Reset the internal state of the view.
void mouseReleaseEvent(QMouseEvent *event) override
This function is called with the given event when a mouse button is released, after a mouse press eve...
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList< int > &roles=QList< int >())
This slot is called when items with the given roles are changed in the model.
virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
This slot is called when rows are about to be removed.
virtual void setRootIndex(const QModelIndex &index)
Sets the root item to the item at the given index.
virtual void initViewItemOption(QStyleOptionViewItem *option) const
virtual void doItemsLayout()
virtual void scrollTo(const QModelIndex &index, ScrollHint hint=EnsureVisible)=0
Scrolls the view if necessary to ensure that the item at index is visible.
virtual int horizontalOffset() const =0
Returns the horizontal offset of the view.
CursorAction
This enum describes the different ways to navigate between items,.
virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers)=0
Returns a QModelIndex object pointing to the next object in the view, based on the given cursorAction...
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
This slot is called when a new item becomes the current item.
void resizeEvent(QResizeEvent *event) override
This function is called with the given event when a resize event is sent to the widget.
virtual void rowsInserted(const QModelIndex &parent, int start, int end)
This slot is called when rows are inserted.
virtual QModelIndexList selectedIndexes() const
This convenience function returns a list of all selected and non-hidden item indexes in the view.
virtual bool isIndexHidden(const QModelIndex &index) const =0
Returns true if the item referred to by the given index is hidden in the view, otherwise returns fals...
void mouseMoveEvent(QMouseEvent *event) override
This function is called with the given event when a mouse move event is sent to the widget.
virtual QModelIndex indexAt(const QPoint &point) const =0
Returns the model index of the item at the viewport coordinates point.
virtual void updateGeometries()
QSize viewportSizeHint() const override
The QListView class provides a list or icon view onto a model.
ViewMode
\value ListMode The items are laid out using TopToBottom flow, with Small size and Static movement \v...
ResizeMode
\value Fixed The items will only be laid out the first time the view is shown.
Movement
\value Static The items cannot be moved by the user.
Flow
\value LeftToRight The items are laid out in the view from the left to the right.
LayoutMode
\value SinglePass The items are laid out all at once.
void indexesMoved(const QModelIndexList &indexes)
The QPaintEvent class contains event parameters for paint events.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
The QResizeEvent class contains event parameters for resize events.
EGLImageKHR int int EGLuint64KHR * modifiers
Combined button and popup list for selecting options.
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define QT_REQUIRE_CONFIG(feature)
dialog setViewMode(QFileDialog::Detail)
[3]
QItemSelection * selection
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent