Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qabstractitemmodel.h File Reference

(fdf7774bc6c0f1dc86905cca564b3a1a02413281)

#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
 \macro QT_NO_KEYWORDS >
 

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

Function Documentation

◆ operator<<() [1/2]

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

Definition at line 669 of file qabstractitemmodel.cpp.

References QModelIndex::column(), QModelIndex::internalPointer(), QModelIndex::model(), and QModelIndex::row().

+ Here is the call graph for this function:

◆ operator<<() [2/2]

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

Definition at line 212 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 501 of file qabstractitemmodel.h.

References qHashMulti(), and seed.

+ Here is the call graph for this function:

◆ qHash() [2/2]

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

Definition at line 217 of file qabstractitemmodel.h.

◆ QT_REQUIRE_CONFIG()

QT_REQUIRE_CONFIG ( itemmodel )