7#include <QtWidgets/qlistview.h>
8#include <QtWidgets/qtwidgetsglobal.h>
9#include <QtCore/qlist.h>
10#include <QtCore/qitemselectionmodel.h>
11#include <QtCore/qvariant.h>
39 void setSelected(
bool select);
40 bool isSelected()
const;
42 inline void setHidden(
bool hide);
43 inline bool isHidden()
const;
45 inline Qt::ItemFlags
flags()
const {
return itemFlags; }
46 void setFlags(Qt::ItemFlags
flags);
58 inline void setStatusTip(
const QString &statusTip);
66#if QT_CONFIG(whatsthis)
67 inline QString whatsThis()
const
76#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
77 inline int textAlignment()
const
83#if QT_DEPRECATED_SINCE(6, 4)
118#ifndef QT_NO_DATASTREAM
124 inline int type()
const {
return rtti; }
131 Qt::ItemFlags itemFlags;
143#if QT_CONFIG(tooltip)
144inline void QListWidgetItem::setToolTip(
const QString &atoolTip)
148#if QT_CONFIG(whatsthis)
149inline void QListWidgetItem::setWhatsThis(
const QString &awhatsThis)
156#ifndef QT_NO_DATASTREAM
167 Q_PROPERTY(
int currentRow READ currentRow WRITE setCurrentRow NOTIFY currentRowChanged
169 Q_PROPERTY(
bool sortingEnabled READ isSortingEnabled WRITE setSortingEnabled)
194 int currentRow()
const;
195 void setCurrentRow(
int row);
196 void setCurrentRow(
int row, QItemSelectionModel::SelectionFlags command);
203 void setSortingEnabled(
bool enable);
204 bool isSortingEnabled()
const;
216 QList<QListWidgetItem*> selectedItems()
const;
217 QList<QListWidgetItem*> findItems(
const QString &
text, Qt::MatchFlags
flags)
const;
225#if QT_CONFIG(draganddrop)
226 void dropEvent(QDropEvent *
event)
override;
250#if QT_CONFIG(draganddrop)
252 virtual Qt::DropActions supportedDropActions()
const;
bool isPersistentEditorOpen(const QModelIndex &index) const
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.
The QListView class provides a list or icon view onto a model.
void setRowHidden(int row, bool hide)
If hide is true, the given row will be hidden; otherwise the row will be shown.
bool isRowHidden(int row) const
Returns true if the row is hidden; otherwise returns false.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
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]
GLint GLint GLint GLint GLint x
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint GLsizei const GLchar * label
[43]
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")