You can use it everywhere not only on a graphics screen. In your case you seem to have a fixed screen (on a mobile with s60) simple create a widget and position it outside the window. Now on button click start an animation manipulating the pos property and let the widget slide in. Something like that:
// setup slide
slide.setGeometry(-slide->width(), 0, slide->width(), slide->height());
// then a animation:
QPropertyAnimation *animation = new QPropertyAnimation(slide, "pos");
animation->setDuration(10000);
animation->setStartValue(slide->pos());
animation
->setEndValue
(QPoint(0,
0));
// to slide in call
animation->start();
QWidget* slide;
// setup slide
slide.setGeometry(-slide->width(), 0, slide->width(), slide->height());
// then a animation:
QPropertyAnimation *animation = new QPropertyAnimation(slide, "pos");
animation->setDuration(10000);
animation->setStartValue(slide->pos());
animation->setEndValue(QPoint(0,0));
// to slide in call
animation->start();
To copy to clipboard, switch view to plain text mode
Bookmarks