Bug with QGraphicsOpacityEffect probably?
-
So I have a widget. Inside the widget there is a scrollarea..
If i try this:@QGraphicsOpacityEffect* opacityEffect = new QGraphicsOpacityEffect(this);
opacityEffect->setOpacity(0.0);
ui->widget->setGraphicsEffect(opacityEffect);
QPropertyAnimation* anim = new QPropertyAnimation(this);
anim->setTargetObject(opacityEffect);
anim->setPropertyName("opacity");
anim->setDuration(3000);
anim->setStartValue(opacityEffect->opacity());
anim->setEndValue(1);
anim->setEasingCurve(QEasingCurve::OutQuad);
anim->start(QAbstractAnimation::DeleteWhenStopped);@which always works with widgets, buttons, labels,etc
the whole widget will be blackYou think i should report it as a bug?
EDIT:
This is like a scrollarea bug, cause it is the same with groupbox, stackwidget, etc -
Reported here: https://bugreports.qt-project.org/browse/QTBUG-25650