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. Animating style/hover/etc/etc

Animating style/hover/etc/etc

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 924 Views
  • 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.
  • D Offline
    D Offline
    Dariusz
    wrote on last edited by
    #1

    Hey

    Kinda 2 questions in 1...

    1. I want to animate my hover "look" so when user hovers over button/qstandarditem/etc the "hover" should pulse colors.
    2. 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-classes

    And 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?

    1 Reply Last reply
    0

    • Login

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