4#include <QStyledItemDelegate>
36 const QStyleOptionViewItem &,
40 editor->setFrame(
false);
41 editor->setMinimum(0);
42 editor->setMaximum(100);
73 const QStyleOptionViewItem &
option,
76 editor->setGeometry(
option.rect);
virtual Q_INVOKABLE bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Sets the role data for the item at index to value.
void interpretText()
This function interprets the text of the spin box.
QObject * parent() const
Returns a pointer to the parent object.
The QSpinBox class provides a spin box widget.
int value
the value of the spin box
The QStyledItemDelegate class provides display and editing facilities for data items from a model.
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
[constructor]
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
[setEditorData]
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
[setModelData]
void setEditorData(QWidget *editor, const QModelIndex &index) const override
[createEditor]
SpinBoxDelegate(QObject *parent=nullptr)
[declaration]
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
QSqlQueryModel * model
[16]