QRangeModel::RowOptions Struct
template <typename T> struct QRangeModel::RowOptionsLa plantilla RowOptions proporciona un punto de personalización para controlar cómo QRangeModel representa los tipos utilizados como filas. Más...
Esta estructura se introdujo en Qt 6.10.
Descripción detallada
Especializa esta plantilla para el tipo usado en tu rango, y añade los miembros relevantes.
| Miembro | Valores |
|---|---|
| static constexpr RowCategory rowCategory | RowCategory |
class ColorEntry { Q_GADGET Q_PROPERTY(QString display MEMBER m_colorName) Q_PROPERTY(QColor decoration READ decoration) Q_PROPERTY(QString toolTip READ toolTip) public: ... }; template <> struct QRangeModel::RowOptions<ColorEntry> { static constexpr auto rowCategory = QRangeModel::RowCategory::MultiRoleItem; };
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.