7#include <QtWidgets/qtableview.h>
8#include <QtWidgets/qtwidgetsglobal.h>
9#include <QtCore/qlist.h>
10#include <QtCore/qvariant.h>
27 return lhs.m_top == rhs.m_top && lhs.m_left == rhs.m_left && lhs.m_bottom == rhs.m_bottom
28 && lhs.m_right == rhs.m_right;
32 {
return !(lhs == rhs); }
34 inline int topRow()
const {
return m_top; }
38 inline int rowCount()
const {
return m_bottom - m_top + 1; }
39 inline int columnCount()
const {
return m_right - m_left + 1; }
41 int m_top = -1, m_left = -1, m_bottom = -2, m_right = -2;
65 inline int row()
const;
68 void setSelected(
bool select);
69 bool isSelected()
const;
71 inline Qt::ItemFlags
flags()
const {
return itemFlags; }
72 void setFlags(Qt::ItemFlags
flags);
84 inline void setStatusTip(
const QString &statusTip);
92#if QT_CONFIG(whatsthis)
93 inline QString whatsThis()
const
102#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
103 inline int textAlignment()
const
109#if QT_DEPRECATED_SINCE(6, 4)
144#ifndef QT_NO_DATASTREAM
150 inline int type()
const {
return rtti; }
160 Qt::ItemFlags itemFlags;
172#if QT_CONFIG(tooltip)
173inline void QTableWidgetItem::setToolTip(
const QString &atoolTip)
177#if QT_CONFIG(whatsthis)
178inline void QTableWidgetItem::setWhatsThis(
const QString &awhatsThis)
185#ifndef QT_NO_DATASTREAM
195 Q_PROPERTY(
int rowCount READ rowCount WRITE setRowCount)
204 void setRowCount(
int rows);
205 int rowCount() const;
208 int columnCount() const;
227 void setVerticalHeaderLabels(const
QStringList &labels);
228 void setHorizontalHeaderLabels(const
QStringList &labels);
230 int currentRow() const;
231 int currentColumn() const;
235 void setCurrentCell(
int row,
int column);
239 void setSortingEnabled(
bool enable);
240 bool isSortingEnabled() const;
250 inline
void removeCellWidget(
int row,
int column);
258 int visualRow(
int logicalRow) const;
259 int visualColumn(
int logicalColumn) const;
271 void insertColumn(
int column);
273 void removeColumn(
int column);
275 void clearContents();
287 void itemSelectionChanged();
297 void currentCellChanged(
int currentRow,
int currentColumn,
int previousRow,
int previousColumn);
304 virtual
Qt::DropActions supportedDropActions() const;
307#if QT_CONFIG(draganddrop)
308 void dropEvent(QDropEvent *
event)
override;
331{
return itemAt(
QPoint(ax, ay)); }
334{
return (
view ?
view->row(
this) : -1); }
337{
return (
view ?
view->column(
this) : -1); }
The QAbstractItemView class provides the basic functionality for item view classes.
ScrollHint
\value EnsureVisible Scroll to ensure that the item is visible.
\inmodule QtCore\reentrant
The QIcon class provides scalable icons in different modes and states.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTableView class provides a default model/view implementation of a table view.
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum GLsizei GLsizei GLint * values
[15]
GLint GLint GLint GLint GLint x
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLdouble GLdouble GLdouble GLdouble top
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
GLfixed GLfixed GLint GLint order
decorationRoleName toolTipRoleName whatsThisRoleName setTextAlignment
decorationRoleName toolTipRoleName setWhatsThis
decorationRoleName setToolTip
static bool operator<(const QSettingsIniKey &k1, const QSettingsIniKey &k2)
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define QT_REQUIRE_CONFIG(feature)
#define QT_DEPRECATED_VERSION_X_6_4(text)
ReturnedValue read(const char *data)
view setModel(model)
[17] //! [18]
QSqlQueryModel * model
[16]
gzip write("uncompressed data")
QTextStream out(stdout)
[7]
mimeData setData("text/csv", csvData)
selection select(topLeft, bottomRight)
myAction setIcon(SomeIcon)
insertRed setText("insert red text")
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent