7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qabstractitemview.h>
20 Q_PROPERTY(
bool showGrid READ showGrid WRITE setShowGrid)
21 Q_PROPERTY(
Qt::PenStyle gridStyle READ gridStyle WRITE setGridStyle)
22 Q_PROPERTY(
bool sortingEnabled READ isSortingEnabled WRITE setSortingEnabled)
23 Q_PROPERTY(
bool wordWrap READ wordWrap WRITE setWordWrap)
24#if QT_CONFIG(abstractbutton)
25 Q_PROPERTY(
bool cornerButtonEnabled READ isCornerButtonEnabled WRITE setCornerButtonEnabled)
35 void doItemsLayout()
override;
42 int rowViewportPosition(
int row)
const;
43 int rowAt(
int y)
const;
46 int rowHeight(
int row)
const;
48 int columnViewportPosition(
int column)
const;
49 int columnAt(
int x)
const;
52 int columnWidth(
int column)
const;
54 bool isRowHidden(
int row)
const;
55 void setRowHidden(
int row,
bool hide);
57 bool isColumnHidden(
int column)
const;
60 void setSortingEnabled(
bool enable);
61 bool isSortingEnabled()
const;
63 bool showGrid()
const;
68 void setWordWrap(
bool on);
69 bool wordWrap()
const;
71#if QT_CONFIG(abstractbutton)
72 void setCornerButtonEnabled(
bool enable);
73 bool isCornerButtonEnabled()
const;
80 void setSpan(
int row,
int column,
int rowSpan,
int columnSpan);
82 int columnSpan(
int row,
int column)
const;
87 void selectRow(
int row);
88 void selectColumn(
int column);
89 void hideRow(
int row);
90 void hideColumn(
int column);
91 void showRow(
int row);
92 void showColumn(
int column);
93 void resizeRowToContents(
int row);
94 void resizeRowsToContents();
95 void resizeColumnToContents(
int column);
96 void resizeColumnsToContents();
98 void setShowGrid(
bool show);
101 void rowMoved(
int row,
int oldIndex,
int newIndex);
102 void columnMoved(
int column,
int oldIndex,
int newIndex);
103 void rowResized(
int row,
int oldHeight,
int newHeight);
104 void columnResized(
int column,
int oldWidth,
int newWidth);
105 void rowCountChanged(
int oldCount,
int newCount);
106 void columnCountChanged(
int oldCount,
int newCount);
110 void scrollContentsBy(
int dx,
int dy)
override;
112 void initViewItemOption(QStyleOptionViewItem *
option)
const override;
117 int horizontalOffset()
const override;
118 int verticalOffset()
const override;
125 void updateGeometries()
override;
127 QSize viewportSizeHint()
const override;
129 int sizeHintForRow(
int row)
const override;
130 int sizeHintForColumn(
int column)
const override;
132 void verticalScrollbarAction(
int action)
override;
133 void horizontalScrollbarAction(
int action)
override;
143 friend class QAccessibleItemView;
The QAbstractItemView class provides the basic functionality for item view classes.
CursorAction
This enum describes the different ways to navigate between items,.
ScrollHint
\value EnsureVisible Scroll to ensure that the item is visible.
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 QTableView class provides a default model/view implementation of a table view.
EGLImageKHR int int EGLuint64KHR * modifiers
Combined button and popup list for selecting options.
static jboolean setSelection(JNIEnv *, jobject, jint start, jint end)
static QString header(const QString &name)
static void visualRect(QRectF *geom, Qt::LayoutDirection dir, const QRectF &contentsRect)
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
GLfixed GLfixed GLint GLint order
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define QT_REQUIRE_CONFIG(feature)
view setModel(model)
[17] //! [18]
QSqlQueryModel * model
[16]
QItemSelection * selection
[0]