![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Represents the wrapped type {T} as multiple columns in a QGenericItemModel.
More...
#include <qgenericitemmodel.h>
Collaboration diagram for QGenericItemModel::MultiColumn< T >:Public Types | |
| using | type = std::remove_pointer_t<T> |
| template<typename X> | |
| using | if_get_matches |
Public Member Functions | |
| template<typename V = T, std::enable_if_t< QGenericItemModelDetails::is_validatable< V >::value, bool > = true> | |
| constexpr | operator bool () const noexcept |
Public Attributes | |
| T | data {} |
Friends | |
| template<std::size_t I, typename V, if_get_matches< V > = true> | |
| decltype(auto) | get (V &&multiColumn) |
Represents the wrapped type {T} as multiple columns in a QGenericItemModel.
\inmodule QtCore
Use this type to disambiguate when the type {T} has both a metaobject, and implements \l{the C++ tuple protocol}. The type will be represented as multiple columns, and the individual values will be accessed through the tuple protocol.
To represent the type a single column value with multiple roles, use QGenericItemModel::SingleColumn instead.
Definition at line 19 of file qgenericitemmodel.h.
Definition at line 24 of file qgenericitemmodel.h.
| using QGenericItemModel::MultiColumn< T >::type = std::remove_pointer_t<T> |
Definition at line 21 of file qgenericitemmodel.h.
|
inlineexplicitconstexprnoexcept |
Definition at line 29 of file qgenericitemmodel.h.
|
friend |
Definition at line 33 of file qgenericitemmodel.h.
| T QGenericItemModel::MultiColumn< T >::data {} |
Definition at line 22 of file qgenericitemmodel.h.