QtBase  v6.3.1
Classes | Namespaces | Typedefs | Functions
qabstractitemmodel.h File Reference
#include <QtCore/qhash.h>
#include <QtCore/qlist.h>
#include <QtCore/qobject.h>
#include <QtCore/qvariant.h>
Include dependency graph for qabstractitemmodel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QModelRoleData
 The QModelRoleData class holds a role and the data associated to that role. More...
 
struct  QtPrivate::IsContainerCompatibleWithModelRoleDataSpan< T, Enable >
 
struct  QtPrivate::IsContainerCompatibleWithModelRoleDataSpan< T, std::enable_if_t< std::conjunction_v< std::is_convertible< decltype(std::data(std::declval< T & >())), QModelRoleData * >, std::is_convertible< decltype(std::size(std::declval< T & >())), qsizetype >, std::is_convertible< typename std::iterator_traits< decltype(std::begin(std::declval< T & >()))>::value_type, QModelRoleData >, std::is_convertible< decltype(std::begin(std::declval< T & >()) !=std::end(std::declval< T & >())), bool >, std::negation< std::is_same< std::decay_t< T >, QModelRoleDataSpan > > > > >
 
class  QModelRoleDataSpan
 The QModelRoleDataSpan class provides a span over QModelRoleData objects. More...
 
class  QModelIndex
 The QModelIndex class is used to locate data in a data model. More...
 
class  QPersistentModelIndex
 The QPersistentModelIndex class is used to locate data in a data model. More...
 
class  QAbstractItemModel
 The QAbstractItemModel class provides the abstract interface for item model classes. More...
 
class  QAbstractTableModel
 The QAbstractTableModel class provides an abstract model that can be subclassed to create table models. More...
 
class  QAbstractListModel
 The QAbstractListModel class provides an abstract model that can be subclassed to create one-dimensional list models. More...
 

Namespaces

 QtPrivate
 

Typedefs

typedef QList< QModelIndexQModelIndexList
 

Functions

 QT_REQUIRE_CONFIG (itemmodel)
 
 Q_DECLARE_TYPEINFO (QModelRoleData, Q_RELOCATABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QModelRoleDataSpan, Q_RELOCATABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QModelIndex, Q_RELOCATABLE_TYPE)
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QModelIndex &)
 
size_t qHash (const QPersistentModelIndex &index, size_t seed=0) noexcept
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QPersistentModelIndex &)
 
size_t qHash (const QModelIndex &index, size_t seed=0) noexcept
 

Typedef Documentation

◆ QModelIndexList

typedef QList<QModelIndex> QModelIndexList
related

Definition at line 261 of file qabstractitemmodel.h.

Function Documentation

◆ operator<<() [1/2]

Q_CORE_EXPORT QDebug operator<< ( QDebug  dbg,
const QModelIndex idx 
)

Definition at line 702 of file qabstractitemmodel.cpp.

Here is the call graph for this function:

◆ operator<<() [2/2]

Q_CORE_EXPORT QDebug operator<< ( QDebug  dbg,
const QPersistentModelIndex idx 
)

Definition at line 248 of file qabstractitemmodel.cpp.

◆ Q_DECLARE_TYPEINFO() [1/3]

Q_DECLARE_TYPEINFO ( QModelIndex  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [2/3]

Q_DECLARE_TYPEINFO ( QModelRoleData  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [3/3]

Q_DECLARE_TYPEINFO ( QModelRoleDataSpan  ,
Q_RELOCATABLE_TYPE   
)

◆ qHash() [1/2]

size_t qHash ( const QModelIndex index,
size_t  seed = 0 
)
inlinenoexcept

Definition at line 537 of file qabstractitemmodel.h.

◆ qHash() [2/2]

size_t qHash ( const QPersistentModelIndex index,
size_t  seed = 0 
)
related

Definition at line 253 of file qabstractitemmodel.h.

◆ QT_REQUIRE_CONFIG()

QT_REQUIRE_CONFIG ( itemmodel  )