How can QSS set up transition animations like CSS3?
Solved
General and Desktop
-
Is it possible to set up transition animations in Qt Widgets using QSS like CSS3? Or do I have to use QML?
Another question is how to use the QSS-specific
widget-animation-duration
property and for which controls? The official documentation only gives an example, but does not explain this property in detail. -
Hi,
No, QSS is a subset of CSS and predates CSS3. If you want advanced animation, you likely should go with QML.
As for
widget-animation-duration
, it allows to influence how long animation for widgets such as QTreeView lasts. -