Hi!

I want to animate changing of background color in a window using QPropertyAnimation
Qt Code:
  1. QPalette start;
  2. start.setColor(QPalette::Window, QColor(1,255,0));
  3.  
  4. QPalette stop;
  5. stop.setColor(QPalette::Window, QColor(255,255,255));
  6. animation = new QPropertyAnimation(this, "palette");
  7. animation->setDuration(100);
  8. animation->setStartValue(start);
  9. animation->setEndValue(stop);
  10. animation->setLoopCount(-1);
  11. animation->start();
To copy to clipboard, switch view to plain text mode 

But after "starting" the animation nothing happen...
Is there a way to change the background color of window by simple calling some property? (Without overloading or creating own properties by Q_PROPERTY)