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;
100 void doItemsLayout()
override;
101 void reset()
override;
112 void scrollContentsBy(
int dx,
int dy)
override;
115 QSize contentsSize()
const;
118 const QList<int> &roles = QList<int>())
override;
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;
137 void initViewItemOption(QStyleOptionViewItem *
option)
const override;
140 int horizontalOffset()
const override;
141 int verticalOffset()
const override;
150 void updateGeometries()
override;
157 QSize viewportSizeHint()
const override;
The QAbstractItemView class provides the basic functionality for item view classes.
CursorAction
This enum describes the different ways to navigate between items,.
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.
static jboolean setSelection(JNIEnv *, jobject, jint start, jint end)
static void visualRect(QRectF *geom, Qt::LayoutDirection dir, const QRectF &contentsRect)
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]