GammaRay API Documentation  3.2.0
Public Member Functions | List of all members
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:

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 by doxygen 1.9.1