fade in and out of bunch of label inside QVBoxLayout with animation
Unsolved
General and Desktop
-
Hi, I have a QVBoxLayout that I have a bunch of label inside it
I need to be able to fade in and out all of the label inside it in same time with an animation
so I wonder how can I get all of the labels inside a QVBoxLayout and fade in or out them?
thanks in advance. -
Make a new widget, put your VBoxLayout with your labels inside and fade-out or fade-in the whole widget using
QGraphicsOpacityEffect
andQPropertyAnimation
. -
@saeid0034 said in fade in and out of bunch of label inside QVBoxLayout with animation:
so I wonder how can I get all of the labels inside a QVBoxLayout
See qFindChildren(). Or put all pointers to your desired labels in a container when you create them.