Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can QSS set up transition animations like CSS3?

How can QSS set up transition animations like CSS3?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mq-loser
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        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.

        M Offline
        M Offline
        mq-loser
        wrote on last edited by
        #3

        @SGaist All right, thanks for you answer.

        1 Reply Last reply
        0
        • M mq-loser has marked this topic as solved on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved