Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qabstractitemmodel.h File Reference

(564f2cbbddbca3f118198f0fb4ca0a97b95b8a59)

#include <QtCore/qcompare.h>
#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
 \inmodule QtCore 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
 \inmodule QtCore More...
 
class  QModelIndex
 \inmodule QtCore More...
 
class  QPersistentModelIndex
 \inmodule QtCore More...
 
class  QAbstractItemModel
 \inmodule QtCore More...
 
class  QAbstractTableModel
 \inmodule QtCore More...
 
class  QAbstractListModel
 \inmodule QtCore More...
 

Namespaces

namespace  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)
 
Q_CORE_EXPORT QDebug operator<< (QDebug dbg, const QPersistentModelIndex &idx)
 
size_t qHash (const QModelIndex &index, size_t seed=0) noexcept
 

Typedef Documentation

◆ QModelIndexList

typedef QList<QModelIndex> QModelIndexList
related

Definition at line 250 of file qabstractitemmodel.h.

Function Documentation

◆ operator<<() [1/2]

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

Definition at line 237 of file qabstractitemmodel.cpp.

◆ operator<<() [2/2]

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

Definition at line 674 of file qabstractitemmodel.cpp.

References QModelIndex::internalPointer().

+ Here is the call graph for this function:

◆ 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 526 of file qabstractitemmodel.h.

◆ qHash() [2/2]

size_t qHash ( const QPersistentModelIndex & key,
size_t seed = 0 )
inlinenoexcept
Since
5.0 \qhashold{QPersistentModelIndex}

Definition at line 242 of file qabstractitemmodel.h.

◆ QT_REQUIRE_CONFIG()

QT_REQUIRE_CONFIG ( itemmodel )