6#include "widgetdelegate.h"
12 if (
index.column() == 1) {
13 int progress =
index.data().toInt();
17 progressBarOption.minimum = 0;
18 progressBarOption.maximum = 100;
19 progressBarOption.progress = progress;
21 progressBarOption.textVisible =
true;
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
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.