6#include "widgetdelegate.h"
12 if (
index.column() == 1) {
13 int progress =
index.data().toInt();
18 progressBarOption.
maximum = 100;
19 progressBarOption.
progress = progress;
static QStyle * style()
Returns the application's style object.
The QPainter class performs low-level painting on widgets and other paint devices.
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
\variable QStyleOptionButton::features
virtual void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w=nullptr) const =0
Draws the given element with the provided painter with the style options specified by option.
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Renders the delegate using the given painter and style option for the item specified by index.