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. QPropertyAnimations too big cpu usage for hover effects

QPropertyAnimations too big cpu usage for hover effects

Scheduled Pinned Locked Moved Unsolved General and Desktop
qpropertyfadeeffectseffectcss3
1 Posts 1 Posters 891 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.
  • 0 Offline
    0 Offline
    0x1337
    wrote on 7 May 2016, 14:00 last edited by
    #1

    Hi,

    I have some widgets column with 2,3, or 4 QLabel on each, and when the mouse enter on the area, the QLabel are fade to another color using QPropertyAnimation, and back to the original color when the mouse quit the area (enter/leave events).

    The problem is if i fly over quickly each items very fast with my mouse, the cpu up to 10-15% (i7 6 cores) and after some seconds the program is a bit laggy.

    I need to remake a fade animation just like CSS3 do it (or like jquery animations do it), nicely and without any bugs.

    In the case of Qt, he don't support animations in his stylesheets (on a website we can do it with CSS3).

    So, how can i do it properly?

    Note: I'm using Qt 5 (C++).

    Thanks.

    1 Reply Last reply
    0

    1/1

    7 May 2016, 14:00

    • Login

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