QKinetic – Animation Framework Qt

QKinetic

  1. Welcome to Kinetic
  2. kinetic-scrolling-on-any-widgets
  3. animations-and-state-machine-apis-in-qtmaster
  4. flickable.py

Example:

" We’d like to bring out the best from every good animation framework out there, and look for a way that makes animations fit neatly into Qt. If we can make an animation API that looks like it has always been there, and which inspires you to add nifty animations to your applications, then we have been successful.

For example, if you’d like to define two states for a widget’s geometry and an animated transition, you might do this:

We’d like to bring out the best from every good animation framework out there, and look for a way that makes animations fit neatly into Qt. If we can make an animation API that looks like it has always been there, and which inspires you to add nifty animations to your applications, then we have been successful.

For example, if you’d like to define two states for a widget’s geometry and an animated transition, you might do this: "

QStateGroup *group = new QStateGroup;
QState *a = new QState(group);
QState *b = new QState(group);

a->setGeometry(w, QRect(100, 100, 200, 200));
b->setGeometry(w, QRect(200, 200, 150, 150));

QTransition *transition = new QTransition(a, b);
transition->addAnimation(new QAnimation(w, “geometry”));

Schreibe einen Kommentar

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

Twitter-Bild

Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

Facebook-Foto

Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s