Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Using QGraphicsOpacityEffect in same widget
Marek Belisko last edited by
I'm having an app which have simple QWidget added to QVBoxLayout. QWidget contain 2 QLabels. One for showing background image (I wasn't able to set using stylesheet background image for QWidget only) and other QLabel which is in the center of screen which pulse (fade in fade out using QGraphicsOpacityEffect and QPropertyAnimation). This works pretty ok but I would like to add opacity effect when changing background image also. When added similar code as I have for center pulsing QLabel I'm getting not correct displaying on screen and also in log there
A paint device can only be painted by one painter at a time.
Can you please suggest how to resolve this issues? Is my approach correct or I need to completely change UI design to have multiple objects animated in one widget? Thanks.