GammaRay API Documentation 3.4.1
GammaRay::PropertyEditorDelegate Class Reference

Delegate for rendering and editing QVariant property values. More...

#include <propertyeditordelegate.h>

Inheritance diagram for GammaRay::PropertyEditorDelegate:

Public Member Functions

 PropertyEditorDelegate (QObject *parent)
QString displayText (const QVariant &value, const QLocale &locale) const override
bool editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
void setEditorData (QWidget *editor, const QModelIndex &index) const override
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override

Detailed Description

Delegate for rendering and editing QVariant property values.

Compared to the built-in functionality this provides support for additional types, such as:

  • rendering of vector and matrix types in their mathematical form
  • editing of flags and enums resolved via EnumRepository
  • editing support mathematical types, palettes, fonts, colors, etc.

It's recommended to use this on any cell containing target-provided QVariants, no matter whether it's read-only or read-write.


© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
GammaRay Qt-application inspection and manipulation tool
https://www.kdab.com/development-resources/qt-tools/gammaray/
Generated on for GammaRay API Documentation by doxygen 1.15.0