QTableWidget drop animation
Is there a way to change QTableWidget drop animation? Actually the animation is this: http://imgur.com/a/FGvIe
I tried this, but doesn't work:
Code:
class NewStyle : public QProxyStyle
{
public:
NewStyle
(QStyle *baseStyle
= 0) : QProxyStyle
(baseStyle
) {
}
void drawPrimitive
(PrimitiveElement element,
const QStyleOption *option,
{
if (element
== QStyle::PE_IndicatorItemViewItemDrop && !option
->rect.
isNull()){ opt.rect.setLeft(0);
if (widget) opt.rect.setRight(widget->width());
QProxyStyle::drawPrimitive(element, &opt, painter, widget);
return;
}
else
{
// the default style is applied
QProxyStyle::drawPrimitive(element, option, painter, widget);
}
}
};