Unsolved Animating style/hover/etc/etc
-
Hey
Kinda 2 questions in 1...
- I want to animate my hover "look" so when user hovers over button/qstandarditem/etc the "hover" should pulse colors.
- I have subclasses QtreeView and its dropIndicator look, I'm using QRect with some color/etc to draw my own indicator in place of where the mouse is dragging the item to. I'd like now to adjust that and give it a specific pulsing/glowing/look etc etc.
So the question is, does QT have something like that built in? Do I somehow subclass QAnimation and then somehow plug it to my let's say QRect.color/pen which I use to draw my indicator in treeView?
I went over these infos :
http://doc.qt.io/qt-5/animation-overview.html
https://forum.qt.io/topic/77791/can-we-use-css-on-qpushbutton/6
https://stackoverflow.com/questions/34445507/change-background-color-of-qwidget-using-animation
https://stackoverflow.com/questions/3953382/qt-how-to-animate-the-transparency-of-a-child-qpushbutton-using-qpropertyanimat
https://stackoverflow.com/questions/3774459/qt-stylesheets-color-fading-2d-gradient-and-css-classesAnd from what I can see they are using more or less animation for it. So I take this is still the way to go with stuff like that and there is no animation of styleSheet and its mostly done programmatically?